python - Snakemake 在配置中声明临时文件

标签 python python-3.x snakemake

有没有办法在配置文件中声明某些文件是否应该是临时的?我正在开发一个管道,其中许多输出文件被标记为临时文件。出于测试目的,我希望它们不是临时的。有没有一种方法可以在蛇文件顶部或在其中的一个位置指定它,而不是删除每个输出文件的 temp(...) 并在测试后将其添加回来配置文件?

最佳答案

在snakemake命令中使用标志--notemp会忽略temp()声明并保留它们而不是删除它们。

--notemp, --nt  

Ignore temp() declarations. This is useful when running only a part of the workflow, since temp() would lead to deletion of probably needed files by other parts of the workflow.

Default: False

Source

关于python - Snakemake 在配置中声明临时文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59720793/

相关文章:

kubernetes - 如何在本地Kubernetes或OpenShift集群上运行Snakemake工作流程?

python - 加载视频数据集(Keras)

python - QTableView 将标题更改为用户输入名称

bioinformatics - 防止输入函数生成示例文件中不存在的文件

conda - Snakemake:我不断收到 'conda' 命令在 $PATH 中不可用。在 SGE 集群上运行时

python - 样本数(行)标准化的方法

python - struct.pack 中的 %d 是什么意思?

python - 属性错误: 'Timestamp' object has no attribute 'translate'

python - 使用相反顺序的两个元组条目对元组列表进行排序

python - 如何将 datetime.datetime 转换为 GMT 格式 python?