I need help to write a for
loop to run Trimmomatic tool for quality trimming of paired end fastq files.
Input: file01_R1.fastq, file01_R2.fastq.
The first file contains first read of paired end reads and the second file contains second reads. I have 100 input files in the same directory (50 files contain *e.R1g.fastq and another 50 files, file02_R1.R2fastq, file02_R2.fastq suffixes) and so on.
Output: file01_R1_PE.fastq, file01_R1_SE.fastq, file01_R2_PE.fastq, file01_R2_SE.fastq
PE = paired end
SE = single end
I need to write a for loop so that I can run an executable for all 100 files. Any help please! Thanks!
Hello Rashedul Islam!
We believe that this post does not fit the main topic of this site.
This is not a question about bioinformatics, but about programming loops. You may find answers on Stack Overflow. I'd recommend also specifying which language or shell you are working with.
For this reason we have closed your question. This allows us to keep the site focused on the topics that the community can help with.
If you disagree please tell us why in a reply below, we'll be happy to talk about it.
Cheers!
Can we reopen this one? It's still a beginner question but relation to bioinformatics is specific enough. Running Trimmomatic on both PE and SE data has its own complications (need to differentiate PE from SE and chose correct adapter set).
Opening this question again for answers would be good.
I have edited my question. Please give a look.