I'm working with DNA sequence data in a program called ObiTools. I would like to find a way to repeat a command for every set of files within the same folder.
For example, if I have the files
Sequence_A1_R1.fastq,
Sequence_A1_R2.fastq,
Sequence_A2_R1.fastq,
Sequence_A2_R2.fastq,
etc.
I would like to run the following command for every value of X, such that X is always the same value (no combination of different values).
illuminapairedend Sequence_X_R1.fastq Sequence_X_R2.fastq > Sequence_X_pairedend.fastq
Is there a python script that could easily do this?
Thanks