Skip to content

Commit

Permalink
added dynamic resources to check_annotation_files rule
Browse files Browse the repository at this point in the history
  • Loading branch information
FrancescoSantini committed Aug 23, 2024
1 parent 873b64e commit 495ea1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion snakefile.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ def lookup(column, predicate, fields=[]):
output:
os.path.join(OUTPUT_DIR, 'input_annotation_stats.tsv')
resources:
mem_mb = config['execution']['rules']['check_annotation_files']['memory']
mem_mb = lambda wc, input: max(1.5 * input.size_mb, config['execution']['rules']['check_annotation_files']['memory'])
log: os.path.join(LOG_DIR, 'check_annotation_files.log')
shell: "{RSCRIPT_EXEC} {SCRIPTS_DIR}/validate_input_annotation.R {input.gtf} {input.cdna} {input.dna} {OUTPUT_DIR} >> {log} 2>&1"

Expand Down

0 comments on commit 495ea1e

Please sign in to comment.