I want to order a fasta file where i have 35000 sequences with different length in nucleotides. But i don't know how to do it.
>contig_1 AAATCGAAACTAGACCATAGC >contig_2 AAAAAACGTACAGAC >contig_3 TTTTCGACAAACGAAAACGATTAGCCCAGAC
i want to ordering like this (from shorter to larger length):
>contig_1 AAAAAACGTACAGAC >contig_2 AAATCGAAACTAGACCATAGC >contig_3 TTTTCGACAAACGAAAACGATTAGCCCAGAC
I already red another post how to rearrange fasta file according to its length and there is a script but i think that is bad because doesn't run when a ran it.