Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
Lasse committed Jan 14, 2025
1 parent 80e8e2d commit f8fe8b6
Showing 1 changed file with 26 additions and 26 deletions.
52 changes: 26 additions & 26 deletions workflow_avamb/avamb.snake.conda.smk
Original file line number Diff line number Diff line change
Expand Up @@ -105,31 +105,31 @@ rule cat_contigs:

conda:
"avamb"
shell: "python {params.path} {output} {input} -m {MIN_CONTIG_SIZE}"

# # Create abundance tables by aligning reads to the catalogue
# rule strobealign:
# input:
# contigs = os.path.join(OUTDIR,"contigs.flt.fna.gz"),
# fq = lambda wildcards: sample2path[wildcards.sample],
# output: temp(os.path.join(OUTDIR, "mapped", "{sample}.aemb.tsv"))
# params:
# walltime="864000",
# nodes="1",
# ppn=SA_PPN
# resources:
# mem=SA_MEM
# threads:
# int(SA_PPN)
# conda:
# "envs/strobealign.yaml"
# log:
# out_sa = os.path.join(OUTDIR,"log/map/{sample}.strobealign.log"),
# o = os.path.join(OUTDIR,"log/map/{sample}.strobealign.o"),
# e = os.path.join(OUTDIR,"log/map/{sample}.strobealign.e")
# shell:
# "strobealign -t {threads} --aemb {input.contigs} {input.fq}"
# " > {output} 2> {log.out_sa}"
shell: "which python > pversion; python {params.path} {output} {input} -m {MIN_CONTIG_SIZE}"

# Create abundance tables by aligning reads to the catalogue
rule strobealign:
input:
contigs = os.path.join(OUTDIR,"contigs.flt.fna.gz"),
fq = lambda wildcards: sample2path[wildcards.sample],
output: temp(os.path.join(OUTDIR, "mapped", "{sample}.aemb.tsv"))
params:
walltime="864000",
nodes="1",
ppn=SA_PPN
resources:
mem=SA_MEM
threads:
int(SA_PPN)
conda:
"envs/strobealign.yaml"
log:
out_sa = os.path.join(OUTDIR,"log/map/{sample}.strobealign.log"),
o = os.path.join(OUTDIR,"log/map/{sample}.strobealign.o"),
e = os.path.join(OUTDIR,"log/map/{sample}.strobealign.e")
shell:
"strobealign -t {threads} --aemb {input.contigs} {input.fq}"
" > {output} 2> {log.out_sa}"

rule create_abundance_tsv:
input:
Expand Down Expand Up @@ -339,7 +339,7 @@ rule run_checkm2_per_sample_all_bins:
"envs/checkm2.yaml"
shell:
"""
checkm2 predict --threads {threads} --input {OUTDIR}/avamb/bins/{wildcards.sample}/*.fna --output-directory {OUTDIR}/tmp/checkm2_all/{wildcards.sample}
checkm2 predict --force --threads {threads} --input {OUTDIR}/avamb/bins/{wildcards.sample}/*.fna --output-directory {OUTDIR}/tmp/checkm2_all/{wildcards.sample}
touch {output.out_log_file}
"""

Expand Down

0 comments on commit f8fe8b6

Please # to comment.