Question: change fastq header
0
gravatar for reza
23 months ago by
reza210
Iran
reza210 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 • 1.5k views
ADD COMMENTlink modified 23 months ago by Pierre Lindenbaum123k • written 23 months ago by reza210
3
gravatar for Sej Modha
23 months ago by
Sej Modha4.5k
Glasgow, UK
Sej Modha4.5k wrote:

You could use sed:

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