Entering edit mode
3.1 years ago
KSmarty
•
0
Hello,
I'm using a tool that produces for every barcode's name a fastq file where every fastq file name contains the barcode number. I need to add the barcode number to all headers depending on their suitable barcodes. I used this command bellow but I need to apply this for all fastq and integrate it in my perl script:
perl -pe '$i = $i ? 0 : 1; s/^@/\@BarcodeBC001--BC001_/ if $i' Run00213_BC001--BC001.fastq > Run00213_BC001--BC001_edit.fastq
With this command I could change the headers in all fastq files but i have to apply it one by one.
I need help if someone has an idea I would appreciate that.
Thank you in advance!
Thank you for the suggestion!