Skip to content

Commit

Permalink
added utils env
Browse files Browse the repository at this point in the history
  • Loading branch information
farchaab committed Apr 26, 2024
1 parent c811b49 commit 3a7e8cf
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 23 deletions.
6 changes: 0 additions & 6 deletions mess/workflow/envs/pigz.yml

This file was deleted.

6 changes: 0 additions & 6 deletions mess/workflow/envs/sed.yml

This file was deleted.

6 changes: 0 additions & 6 deletions mess/workflow/envs/tar.yml

This file was deleted.

5 changes: 4 additions & 1 deletion mess/workflow/envs/curl.yml → mess/workflow/envs/utils.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: curl
name: utils
channels:
- conda-forge
- defaults
dependencies:
- tar >=1.34
- sed >=4.7
- pigz >=2.8
- curl >=8.7.1
8 changes: 4 additions & 4 deletions mess/workflow/rules/processing/reads.smk
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ if BAM:
mem=str(config.resources.sml.mem) + "MB",
time=config.resources.sml.time,
conda:
os.path.join(dir.env, "sed.yml")
os.path.join(dir.env, "utils.yml")
shell:
"""
sed 's/ref/{params.seqname}/g' {input.maf} > {output}
Expand Down Expand Up @@ -247,7 +247,7 @@ if BAM:
mem=str(config.resources.sml.mem) + "MB",
time=config.resources.sml.time,
conda:
os.path.join(dir.env, "curl.yml")
os.path.join(dir.env, "utils.yml")
shell:
"""
curl https://ftp.ncbi.nih.gov/pub/taxonomy/taxdump.tar.gz \\
Expand All @@ -273,7 +273,7 @@ if BAM:
log:
os.path.join(dir.out.logs, "wget", "taxdump.log"),
conda:
os.path.join(dir.env, "tar.yml")
os.path.join(dir.env, "utils.yml")
shell:
"""
tar -xzvf {input} -C {params.dir} &> {log}
Expand Down Expand Up @@ -381,7 +381,7 @@ rule compress_contig_fastqs:
time=config.resources.sml.time,
threads: config.resources.sml.cpu
conda:
os.path.join(dir.env, "pigz.yml")
os.path.join(dir.env, "utils.yml")
shell:
"""
pigz -p {threads} {input}
Expand Down

0 comments on commit 3a7e8cf

Please sign in to comment.