-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Dear Kris,
except for formatting, something like this:
sed -e "s/\(.....\)\(.....\)/ \1 \2\n/g" test.fasta | awk '{count =
(10*LN +1); print count, $0; ++LN}'
(all on one line)
should do the job.
Cheers, Tim
On 05/08/12 09:02, 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
>
- --
- --
Dr Tim Gruene
Institut fuer anorganische Chemie
Tammannstr. 4
D-37077 Goettingen
GPG Key ID = A46BEE1A
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iD8DBQFPqNxkUxlJ7aRr7hoRAhgaAKDvcRqxAuHMC+Ek9LHzufVBEvIQZACgz17H
goSKt88kLCJX5GXcI5Sl6iE=
=HkFQ
-----END PGP SIGNATURE-----
|