Linearizing Mixed Fasta
2
0
Entering edit mode
11.7 years ago
PoGibas 5.1k

How can I linearize mixed fasta?

 >Seq1
 ACGT
 >Seq2
 CGTAGT
 >Seq3
 CGTAGTCGTAGT
 CTA
 >Seq4
 ATGC

It should look something like this:

 sed '/^G\|A\|C\|T/s/\n//g'

But it's not working and I don't know how to command sed not to substitute one line sequnces.

linux fasta • 2.4k views
ADD COMMENT
1
Entering edit mode
ADD REPLY
0
Entering edit mode

this post was closed. Please, keep it open to redirect the future queries.

ADD REPLY
1
Entering edit mode
11.7 years ago

With Biopieces:

read_fasta -i in.fna | write_tab -o out.tab -x
ADD COMMENT
1
Entering edit mode
11.6 years ago
Andreas ★ 2.5k

Concatenated fasta is sometimes also called vienna format. Here's an awk script to convert it.

Andreas

ADD COMMENT

Login before adding your answer.

Traffic: 1733 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