我在YAML配置文件中指定了一个workdir用于snakemake,如下所示:
$> cat config.yaml
workdir: "/home/lina/test_output"
id: 1234
$> cat Snakefile
rule all:
input:
data_out = expand("cat_out/{id}_times_two.txt", id = config['id'])
rule double_print:
input:
data = expand("data/{id}.txt", id = config['id'])
output:
data_out = expand("cat_out/{id}_times_two.txt", id = config['id'])
shell:
'cat {input.data} {input.data} > {output.data_out}'
$> snakemake --configfile=config.yaml但是,一旦我运行了我的snakemake命令,输出就会在snakefile所在的目录中生成。我的snakefile能够利用我在配置文件中指定的id参数,因此它能够读取配置文件并至少解释id参数。
我应该如何修改配置文件或我的snakemake命令,以确保输出在我指定的workdir中结束?
非常感谢!
发布于 2018-07-23 00:40:24
https://stackoverflow.com/questions/51467083
复制相似问题