Metabinner Conda Workflow

public public 1yr ago 0 bookmarks

Requirements

Conda

Conda user guide

 

Code Snippets

25
26
shell:
    "(date && metaspades.py -k 21,33,55,77 -t {threads} -1 {input.read1} -2 {input.read2} -o $(dirname {output}) && date) 2> {log.err} > {log.out}"
26
27
28
shell:
    "(date && jgi_summarize_bam_contig_depths --outputDepth {output} {input} && "
    "date) 2> {log.err} > {log.out}"
46
47
48
shell:
    "(date && metabat2 -i {input.contig} -a {input.cov} -o {output}/metabat -t {threads} && "
    "date) 2> {log.err} > {log.out}"
66
67
68
69
shell:
    "(date && cut_up_fasta.py {input.contig} -c 10000 -o 0 --merge_last -b {output.bed} > {output.cont} && "
    "concoct_coverage_table.py {output.bed} {input.bam} > {output.cov} && [[ -s {output.cov} ]] && "
    "date) 2> {log.err} > {log.out}"
87
88
89
90
shell:
    "(date && concoct --composition_file {input.contig} --coverage_file {input.cov} -b $(dirname {output})/concoct -t {threads} && "
    "merge_cutup_clustering.py $(dirname {output})/concoct_clustering_gt1000.csv > {output} && "
    "date) 2> {log.err} > {log.out}"
 98
 99
100
shell:
    "git clone https://github.com/ziyewang/MetaBinner.git &> /dev/null && "
    "mv MetaBinner $(dirname {output.dbs})"
118
119
120
121
122
123
shell:
    """
    (date && jgi_summarize_bam_contig_depths --noIntraDepthVariance --outputDepth {output.temp} {input} && 
    cat {output.temp} | awk '{{if ($2>{config[metabinner][length]}) print $0 }}' | cut -f -1,4- > {output.final} && 
    date) 2> {log.err} > {log.out}
    """
189
190
191
shell:
    "(date && python {input.bin}/scripts/Filter_tooshort.py {input.contig} {config[metabinner][length]} && "
    "python {input.bin}/scripts/gen_kmer.py {input.contig} {config[metabinner][length]} 4 && date) 2> {log.err} > {log.out}"
211
212
213
214
shell:
    "(date && run_metabinner.sh -a {input.cont} -d {input.cov} -k {input.kmer} -p {input.path} -o $(dirname {output}) -t {threads} -s huge && "
    "mv $(dirname {output})/metabinner_res/* $(dirname {output}) && "
    "date) 2> {log.err} > {log.out}"
21
22
shell:
    "(date && seqkit seq -j {threads} -o {output} -m 1499 {input} && date)"
31
32
shell:
    "(date && cat {input} > {output}  && date)"
47
48
shell:
    "(date && bwa index {input} && date) &> {log}"
67
68
69
shell:
    "(date && bwa mem -t {threads} {input.cont} {input.read1} {input.read2} | samtools sort -@{threads} -o {output} - && " 
    "samtools index {output} && date) 2> {log.err} > {log.out}"
ShowHide 7 more snippets with no or duplicated tags.

Login to post a comment if you would like to share your experience with this workflow.

Do you know this workflow well? If so, you can request seller status , and start supporting this workflow.

Free

Created: 1yr ago
Updated: 1yr ago
Maitainers: public
URL: https://github.com/dixit-kunal/Metabinner
Name: metabinner
Version: 1
Badge:
workflow icon

Insert copied code into your website to add a link to this workflow.

Downloaded: 0
Copyright: Public Domain
License: MIT License
  • Future updates

Related Workflows

cellranger-snakemake-gke
snakemake workflow to run cellranger on a given bucket using gke.
A Snakemake workflow for running cellranger on a given bucket using Google Kubernetes Engine. The usage of this workflow ...