fhcrc / seqmagick

An imagemagick-like frontend to Biopython SeqIO
http://seqmagick.readthedocs.org
GNU General Public License v3.0
113 stars 22 forks source link

backtrans-align should have an option for sorting sequences for you #61

Open metasoarous opened 7 years ago

metasoarous commented 7 years ago

It's rather annoying to have to sort the DNA and AA sequences for back translation, given that alignment on the AA seqs is likely to lead to reordering. I get that for larger sequence sets, this restriction let's us more efficiently iterate over the data, but I'm doubtful this frequently outweighs the inconvenience of having to reorder sequences yourself. It would be pretty easy to add an optional flag that sorts the sequences for you by seqid (or by dna order or aa order, perhaps also controllable via option).