Surely a sequence analysis tools are the easiest way to do it.

I'd recommend EMBOSS (open source and runs nicely on most platforms - the "ccp4" of sequence analysis for me at least) http://emboss.sourceforge.net/

Seqret (SEQuence RETurn) program:

seqret -out test.seq -osformat gcg test.fasta

Marko

PS. fasta format needs ">" as a first line with (optional) description in the input file. And not sure what amino acids "b" and "j" would get converted to :-)

On Tue, 8 May 2012, Francois Berenger wrote:

More seriously, there is the babel command from Open Babel
in case the second format you show has a known name.

On 05/08/2012 04:46 PM, Francois Berenger wrote:
Hello,

The tool is called awk.
There is also another tool called Perl, but I won't recommend it.

Regards,
F.

On 05/08/2012 04:02 PM, K Singh wrote:
Dear All
I was looking for a script or an informatics tool enabling me to
change the sequence from FASTA format to something like following:

FASTA FORMAT
abcdefghijklmnopqrstuvwxyz

to

1 abcde fghij
11 klmno pqrst
21 uvwxy z


Many thanks in advance

Regards
Kris



 _____________________________________

 Marko Hyvonen
 Department of Biochemistry, University of Cambridge
 ma...@cryst.bioc.cam.ac.uk
 http://www-cryst.bioc.cam.ac.uk/groups/hyvonen
 tel:    +44-(0)1223-766 044
 mobile: +44-(0)7796-174 877
 fax:    +44-(0)1223-766 002
 --------------------------------------

Reply via email to