Hi there!
I have a new problem with snakemake. There is mutiple directories containing fastq files:
- DATASET/rep1/*.fastq
- DATASET/rep2/*.fastq
- DATASET/rep3/*.fastq
I want to merge each fastq from each repositories separatly. This piece of code work well:
for barcode in `ls DATASET`
do
cat DATASET/${barcode}/*.fastq > MERGE/${barcode}_merged.fastq
done
But I have no clue about how translate this into a snakemake rule, especially the input. Possible to have some tips and solve this problem?
Thanks
Are the prefixes for
*.fastq
the same?indeed. In each rep, fastq are the same.