Off topic:Shell script make FASTA format to single line including ID and sequence
0
0
Entering edit mode
3.6 years ago
SheelS ▴ 40

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?

BASH shell FASTA • 393 views
ADD COMMENT
This thread is not open. No new answers may be added
Traffic: 1500 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6