Wrangle FASTA and FASTQ with SeqKit
Help 10 / 11
Exercises

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.

Exercise Criteria:
0 / 2
  • File renamed.fastq exists
  • File renamed.fastq contains sequences from hairpins.fa with renamed IDs
Loading...