Closed aryazand closed 1 year ago
Hi @aryazand ,
thanks for catching this and proposing the fix. I usually prefer sticking to snake_case
wherever possible, so I won't have to remember where I used a hyphen (-
) and where I used an underscore (_
). So I went and adjusted all occurrences to read {sample}_{unit}
and similar. I hope that's also OK for you?
@dlaehnemann this is a better solution than I proposed. thank you very much!
Currently, the output of the cutadapt_pe and cutadapt_se recipes (in the trim.smk) have the pattern
results/trimmed/{sample}-{unit}_R1.fastq.gz
andresults/trimmed/{sample}-{unit}_single.fastq.gz
, respectively. However the getfq() function (in common.smk) refers to these files as `results/trimmed/{sample}{unit}{group}.fastq.gzand
trimmed/{sample}{unit}_single.fastq.gz(notice the underscore between
{sample}and
{unit}` instead of a hyphen). Because of this the pipeline fails when trimming is activated.In this bug fix, I changed the get_fq() function to refer to the files using the hyphen.