Shell script make FASTA format to single line including ID and sequence
A FASTA format usually looks like below.
>seq1
ATGC
>seq2
GCTA
>seq3
GTAC
......
....
..
How to make it showing as single line using shell script? The ID and sequence are separated by Tab.
>seq1 ATGC
>seq2 GCTA
>seq3 GTAC
.......
....
..
I found most likely answer but not working for me.
awk 'NR%4{printf $0" ";next;}1' input.fasta
Anyone can help please?
• 479 views
•
link
0 answers
No answers yet.
Log in to answer this question.
Hello SheelS!
Questions similar to yours can already be found at:
We have closed your question to allow us to keep similar content in the same thread.
If you disagree with this please tell us why in a reply below. We'll be happy to talk about it.
Cheers!