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

You could use sed:

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