Quantcast
Channel: Biotechnology Forums - All Forums
Viewing all articles
Browse latest Browse all 2695

Change Header of fastq files | awk one liner

$
0
0
Use the following awk for changing the header of the fastq files:

awk '{print (NR%4 == 1) ? "@1_" ++i : $0}' filename.fastq

Here the bold 1 can be changed to whatever string you wish to use.

Viewing all articles
Browse latest Browse all 2695

Trending Articles