I have a list of input files that are in different subfolders and each folder have different number of files, with two wildcards SAMPLE and id. For the output, these names will also be present:
SAMPLE=set(["x","y","z"])
with open(config["path"]+"barcodes.txt") as f: id = [line.rstrip() for line in f]
rule all:
input:
expand(config["path"]+ "{sample}/remap/filtered.{sample}.R1.clean.id_{ID}.fq.bam", sample=SAMPLE, ID=id, allow_missing=True)
rule map_again:
output:
config["path"]+ "{sample}/remap/filtered.{sample}.R1.clean.id_{ID}.fq.bam"
input:
expand(config["path"]+ "{{sample}}/map/filtered.{{sample}}.R1.clean.id_{ID}.fq.gz", sample=SAMPLE, allow_missing=True)
shell:
"squire Map -1 {input} -r 150 -p 10 "
However, I still got warnings from Snakemake that certain combination of the wildcards don't exist, although I hoped it to ignore these ones...
How could I correct this?
Thank you very much!