【发布时间】:2021-08-10 19:34:53
【问题描述】:
在 Snakemake 中,我有 5 条规则。对于每个我通过resources mem_mb 选项设置内存限制。
它看起来像这样:
rule assembly:
input:
file1 = os.path.join(MAIN_DIR, "1.txt"), \
file2 = os.path.join(MAIN_DIR, "2.txt"), \
file3 = os.path.join(MAIN_DIR, "3.txt")
output:
foldr = dir, \
file4 = os.path.join(dir, "A.png"), \
file5 = os.path.join(dir, "A.tsv")
resources:
mem_mb=100000
shell:
" pythonscript.py -i {input.file1} -v {input.file2} -q {input.file3} --cores 5 -o {output.foldr} "
我想通过执行以下操作来限制整个Snakefile 的内存使用:
snakamake --snakefile mysnakefile_snakefile --resources mem_mb=100000
所以并不是所有的作业都会使用100GB(如果我有5条规则,意思是500GB内存分配),但它们的所有执行都将是最大的100GB(5个作业,总共100 GB分配?)
【问题讨论】:
-
您可能对此感兴趣:cr.yp.to/daemontools/softlimit.html
标签: memory resources snakemake