【问题标题】:What are the conditions for snakemake to execute a job?snakemake 执行作业的条件是什么?
【发布时间】:2020-06-16 23:19:51
【问题描述】:

我想知道 snakemake 决定需要执行一项工作所需的所有必要条件,但我在 their documentation 中找不到它们。我找到的最好的来源是snakemake作者的slides from 2016,上面写着:

A job is executed if and only if

- output file is target and does not exist
- output file needed by another executed job and does not exist
- input file newer than output file
- input file will be updated by other job
- execution is enforced

但从那以后他似乎不再使用那张幻灯片,这让我想知道上述标准现在是否已经改变。

【问题讨论】:

    标签: snakemake


    【解决方案1】:

    他们文档的这一页有一个指向 2019 年幻灯片的链接:https://snakemake.readthedocs.io/en/stable/tutorial/tutorial.html。在幻灯片的第 26 页上,您可能会看到相同的规则集:https://slides.com/johanneskoester/snakemake-tutorial#/25:

    Job execution
    A job is executed if and only if
    
    - output file is target and does not exist
    - output file needed by another executed job and does not exist
    - input file newer than output file
    - input file will be updated by other job
    - execution is enforced
    
    determined via breadth-first-search on DAG of jobs
    

    我猜这些规则自 2019 年以来没有任何变化,尤其是考虑到此演示文稿是从官方教程页面引用的。

    【讨论】:

    • 很好的发现。不知何故,我错过了那些幻灯片。谢谢! PS - 奇怪的是这些没有在文档中定义。我会提出问题。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2010-09-23
    • 1970-01-01
    • 2017-04-18
    • 1970-01-01
    • 2014-07-23
    • 2015-04-24
    • 2021-01-12
    相关资源
    最近更新 更多