Renaming sequence names
This exercise is more challenging as it involves regular expressions, but is common enough that it’s useful to work through it.
The FASTQ file NA12878.fastq has read IDs such as @SRR000926.25 and your goal is to rename those to @NA12878_read25 (you can keep the rest of the read name intact).
Use seqkit replace to do so, and output the result to renamed.fastq.
renamed.fastq existsrenamed.fastq contains sequences from hairpins.fa with renamed IDs