I have fastq files named in the following way:
rep1_A01_R2.fastq rep1_A02_R2.fastq rep1_B01_R2.fastq rep1_B02_R2.fastq rep1_C01_R2.fastq rep1_C02_R2.fastq rep1_D01_R2.fastq rep1_D02_R2.fastq
and many more with the same convention of letters and numbers.
I know how to run STAR, was just wondering if there is a way so when I read in the files I do not have to list all the files but can create a command that pulls each fastq file and runs alignment on it. Appreciate any help.
I think OP is looking for a simple loop rather than pooling everything into a single run or doing RG magic.
that would be helpful as well. If you have something in mind. I tried creating a for loop with sed but am getting stuck.
Thank you!