Thanks. It works.
• 2 views
•
link
Hi, I have a lot of like as
HWI-ST1234:231:H2CNTADXY:1:1101:6127:2223 ACGAATCCGTGCGACGTGGGGCTGGAT 71
HWI-ST1234:231:H2CNTADXY:1:1101:19654:2083 CCTTTCTCCTCTTCGGCCTTCAAAGTTC 63.
I want to change to format like as
>HWI-ST1234:231:H2CNTADXY:1:1101:6127:2223 71
ACGAATCCGTGCGACGTGGGGCTGGAT
>HWI-ST1234:231:H2CNTADXY:1:1101:19654:2083 63
CCTTTCTCCTCTTCGGCCTTCAAAGTTC
Have some ways do like this for a lot of sequence? Thanks Fuyou
awk '{printf(">%s %s\n%s\n",$1,$3,$2);}' in > out
and that's not much different from a previous answer for a question you asked: C: Add a sequence name!
awk -F " " '{print">"$1,$3,$2"\n>"$4,$6,$5}' in.fastq > out.fastq
Log in to answer this question.
It's not immediately clear to me what has to be changed and what format your data is in...