包含多个 snakefile

Include more than one snakefile

我想在主 Snakemake 中包含多个 snakefile。

 prefixed = [filename for filename in os.listdir('.') if filename.startswith("Snakefile.")]
 include: ",".join(prefixed)

不幸的是,这不起作用。

有内置方法吗?或者其他方式?

我找到路了

for f in prefixed:
    include: f