This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Fasta to text format

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

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?

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

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

0 answers

No answers yet.

Log in to answer this question.