Skip to content

Commit

Permalink
Work on WDL rules
Browse files Browse the repository at this point in the history
  • Loading branch information
yesimon committed May 1, 2018
1 parent bbb2c36 commit 531dc25
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion metagenomics.py
Original file line number Diff line number Diff line change
Expand Up @@ -1244,7 +1244,7 @@ def rpsblast_models(db, inFasta, outReport, orfs=None, numThreads=None):

args = []
if int(numThreads) > 1:
args.extend(['-num_threads', '1'])
args.extend(['-num_threads', numThreads])

args.extend(['-db', db, '-outfmt', '6', '-query', orf_fn, '-out', outReport])

Expand Down
4 changes: 2 additions & 2 deletions pipes/rules/assembly.rules
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ rule assemble_spades:
clipDb = objectify_remote(config["trim_clip_db"])
output: contigs_spades=config["tmp_dir"] +'/'+config["subdirs"]["assembly"]+'/{sample}.assembly1-spades.fasta'
resources:
mem=12,
mem=100,
threads=int(config.get("number_of_threads", 1))
params: n_reads=str(config["spades_n_reads"]),
logid="{sample}"
Expand All @@ -79,7 +79,7 @@ rule assemble_trinity_spades:
contigs_trinity=config["tmp_dir"] +'/'+config["subdirs"]["assembly"]+'/{sample}.assembly1-trinity.fasta'
output: contigs_trinity_spades=config["tmp_dir"] +'/'+config["subdirs"]["assembly"]+'/{sample}.assembly1-trinity-spades.fasta'
resources:
mem=12,
mem=100,
threads=int(config.get("number_of_threads", 1))
params: n_reads=str(config["spades_n_reads"]),
logid="{sample}"
Expand Down

0 comments on commit 531dc25

Please sign in to comment.