utpalmtbi has asked for the wisdom of the Perl Monks concerning the following question:
I have a input file with many headers and sequences, such as:
>or3agagatgatagat
>or10
aacctttagtag
>or1
gtatatatata
>or2
tactacatgagg
......
I want to sort the headers according to the number after "or".. in case of above input, the output file becomes:
>or1gtatatatata
>or2
tactacatgagg
>or3
agagatgatagat
>or10
aacctttagtag
......
Plz suggest.. Thanks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: sorting headers in a file
by Corion (Patriarch) on Dec 13, 2013 at 07:26 UTC | |
|
Re: sorting headers in a file
by hdb (Monsignor) on Dec 13, 2013 at 07:10 UTC | |
|
Re: sorting headers in a file
by Lennotoecom (Pilgrim) on Dec 13, 2013 at 07:57 UTC | |
by hdb (Monsignor) on Dec 13, 2013 at 08:34 UTC | |
by Lennotoecom (Pilgrim) on Dec 13, 2013 at 08:47 UTC | |
|
Re: sorting headers in a file
by 2teez (Vicar) on Dec 13, 2013 at 08:03 UTC | |
by hdb (Monsignor) on Dec 13, 2013 at 08:23 UTC | |
by 2teez (Vicar) on Dec 13, 2013 at 08:36 UTC | |
by hdb (Monsignor) on Dec 13, 2013 at 09:07 UTC |