Question: change fastq header
0
gravatar for reza
13 months ago by
reza190
Iran
reza190 wrote:

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

fastq • 894 views
ADD COMMENTlink modified 13 months ago by Pierre Lindenbaum115k • written 13 months ago by reza190
2
gravatar for Sej Modha
13 months ago by
Sej Modha3.9k
Glasgow, UK
Sej Modha3.9k wrote:

You could use sed:

sed 's/ 1:N:0:/\/1/g' inputfile
ADD COMMENTlink written 13 months ago by Sej Modha3.9k
2
gravatar for Pierre Lindenbaum
13 months ago by
France/Nantes/Institut du Thorax - INSERM UMR1087
Pierre Lindenbaum115k wrote:
cut -d ' ' -f 1 input.fastq
ADD COMMENTlink written 13 months ago by Pierre Lindenbaum115k
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1076 users visited in the last hour