Skip to content

Commit

Permalink
chore: change tempdir for eggnog
Browse files Browse the repository at this point in the history
  • Loading branch information
matinnuhamunada committed Jan 31, 2024
1 parent 8bf7b78 commit ee493b4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions workflow/rules/eggnog.smk
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,15 @@ rule eggnog:
dmnd="resources/eggnog_db/bacteria.dmnd",
output:
eggnog_dir=directory("data/interim/eggnog/{strains}/"),
tempdir=temp(directory("data/interim/eggnog/tmp/{strains}"))
conda:
"../envs/eggnog.yaml"
threads: 4
threads: 8
log:
"logs/eggnog/eggnog/eggnog-{strains}.log",
shell:
"""
mkdir -p {output.eggnog_dir}
emapper.py -i {input.faa} --decorate_gff "yes" --excel --cpu {threads} -o {wildcards.strains} --output_dir {output.eggnog_dir} --data_dir {input.eggnog_db} &>> {log}
mkdir -p {output.tempdir}
emapper.py -i {input.faa} --decorate_gff "yes" --excel --cpu {threads} -o {wildcards.strains} --output_dir {output.eggnog_dir} --data_dir {input.eggnog_db} --temp_dir {output.tempdir} &>> {log}
"""

0 comments on commit ee493b4

Please sign in to comment.