concatenate fasta file

Grant Edwards invalid at invalid.invalid
Sat Feb 13 10:14:58 EST 2010


On 2010-02-12, PeroMHC <macmanes at gmail.com> wrote:
> Hi All, I have  a simple problem that I hope somebody can help with. I
> have an input file (a fasta file) that I need to edit..
>
> Input file format
>
>>name 1
> tactcatacatac
>>name 2
> acggtggcat
>>name 3
> gggtaccacgtt
>
> I need to concatenate the sequences.. make them look like
>
>>concatenated
> tactcatacatacacggtggcatgggtaccacgtt

(echo "concantenated>"; grep '^ [actg]*$' inputfile | tr -d '\n'; echo) > outputfile

-- 
Grant




More information about the Python-list mailing list