snakemake: how to deal with variable number of output from a rule
问题 I want to run bcl2fastq to generate fastq files from bcl format. Depending on the sequencing set up with respect to sequencing mode and how many indexes were used, it can generate either read1,read2,index1 or read1,read2,index1,index2, etc. What I want to do is, put the read output number information in the config.yaml file as this: readids: ['I1','I2','R1','R2'] and let the rule figure out automatically how many read output (fastq.gz files) it should generate. How do I write the output