Fasta to text format
0
0
Entering edit mode
3.5 years ago

Is there a quick way to convert fasta formats into text files? I need to convert whole genome sequences into .txt files for some software I am using, so need to remove scaffold assignments, so that the structure is the species name, followed by the entire sequence on "one line".

genome text fasta format • 4.2k views
ADD COMMENT
0
Entering edit mode

You're describing a custom plain text format, possibly space or tab separated with the species in the first field and the whole sequence in the second field, correct?

Where would you get the species name from?

ADD REPLY
0
Entering edit mode

Yes that is correct. Pref space delimited, with species name deriving from the 'filename' that the sequence is from.

ADD REPLY
1
Entering edit mode

Use this code courtesy of @Pierre. You can then cat the linearized files together. Change \t to space if you need that :

ADD REPLY

Login before adding your answer.

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