Question: (Closed) Shell script make FASTA format to single line including ID and sequence
0
gravatar for SheelS
7 weeks ago by
SheelS40
Asia
SheelS40 wrote:

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 • 118 views
ADD COMMENTlink written 7 weeks ago by SheelS40
1

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!

ADD REPLYlink written 7 weeks ago by Joe18k
Please log in to add an answer.
The thread is closed. No new answers may be added.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1710 users visited in the last hour