Question: change fastq header
0
gravatar for reza
7 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 • 533 views
ADD COMMENTlink modified 7 months ago by Pierre Lindenbaum108k • written 7 months ago by reza190
2
gravatar for Sej Modha
7 months ago by
Sej Modha2.9k
Glasgow, UK
Sej Modha2.9k wrote:

You could use sed:

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