Hello,
I have several fastq files like this:
7097-TK273759-HiSeqShotgun_S9_R1_001.fastq.gz
7097-TK273759-HiSeqShotgun_S9_R2_001.fastq.gz
7097-TK273763-HiSeqShotgun_S10_R1_001.fastq.gz
7097-TK273763-HiSeqShotgun_S10_R2_001.fastq.gz
7097-TK273775_1-HiSeqShotgun_S14_R1_001.fastq.gz
7097-TK273775_1-HiSeqShotgun_S14_R2_001.fastq.gz
7097-TK273775_2-HiSeqShotgun_S15_R1_001.fastq.gz
7097-TK273775_2-HiSeqShotgun_S15_R2_001.fastq.gz
I want to rename like this:
TK273759_R1.fastq.gz
TK273759_R2.fastq.gz
TK273763_R1.fastq.gz
TK273763_R2.fastq.gz
TK273775_1_R1.fastq.gz
TK273775_1_R2.fastq.gz
TK273775_2_R1.fastq.gz
TK273775_2_R2.fastq.gz
Fore reference
brename
is available here: https://github.com/shenwei356/brenameThank you for your help!