snakemake.io.expand

snakemake.io.expand(*args, **wildcard_values)[source]

Expand wildcards in given filepatterns.

Arguments *args – first arg: filepatterns as list or one single filepattern,

second arg (optional): a function to combine wildcard values (itertools.product per default)

**wildcard_values – the wildcards as keyword arguments

with their values as lists. If allow_missing=True is included wildcards in filepattern without values will stay unformatted.