我正在使用snakemake 开发管道。我正在尝试为目录中的每个文件创建指向新目标的符号链接。我不提前知道会有多少文件,所以我正在尝试使用动态输出。
rule source:
output: dynamic('{n}.txt')
run:
source_dir = config["windows"]
source = os.listdir(source_dir)
for w in source:
shell("ln -s %s/%s source/%s" % (source_dir, w, w))
这是我得到的错误:
WorkflowError:“目标规则可能不包含通配符。请指定具体文件或不带通配符的规则。”
问题是什么?