change fastq header
i have a fastq file that have headers like "@HWI-ST916:209:XXXX:2:1101:1104:1915 1:N:0:", Now i want to convert them like "@HWI-ST916:209:XXXX:2:1101:1104:1915/1"
how can i do it?
thanks in advance
• 3,874 views
•
link
2 answers
You could use sed:
sed 's/ 1:N:0:/\/1/g' inputfile
• 0 views
•
link
cut -d ' ' -f 1 input.fastq
• 0 views
•
link
Log in to answer this question.