Medhat
Medhat

Reputation: 1652

Include more than one snakefile

I would like to include more than one snakefile in the main Snakemake.

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

Unfortunately, this does not work.

Is there is build in method? Or any other way?

Upvotes: 2

Views: 432

Answers (1)

Medhat
Medhat

Reputation: 1652

I found the way

for f in prefixed:
    include: f

Upvotes: 3

Related Questions