Question: change fastq header
0
gravatar for reza
2.8 years ago by
reza230
Iran
reza230 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 • 2.0k views
ADD COMMENTlink modified 2.8 years ago by Pierre Lindenbaum129k • written 2.8 years ago by reza230
3
gravatar for Sej Modha
2.8 years ago by
Sej Modha4.7k
Glasgow, UK
Sej Modha4.7k wrote:

You could use sed:

sed 's/ 1:N:0:/\/1/g' inputfile
ADD COMMENTlink written 2.8 years ago by Sej Modha4.7k
2
gravatar for Pierre Lindenbaum
2.8 years ago by
France/Nantes/Institut du Thorax - INSERM UMR1087
Pierre Lindenbaum129k wrote:
cut -d ' ' -f 1 input.fastq
ADD COMMENTlink written 2.8 years ago by Pierre Lindenbaum129k
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: 1189 users visited in the last hour