[Biopython-dev] Sorting alignments

Peter Cock p.j.a.cock at googlemail.com
Sat Jun 23 09:48:58 EDT 2012


Hi all,

This branch extends the MultipleSeqAlignment's sort method to
accept a key function and a reverse option (just like lists under
Python 3 - there is no need for a cup argument):

https://github.com/peterjc/biopython/tree/align-sort

This was prompted by a BioStars question,
http://www.biostars.org/post/show/47562/is-there-a-way-to-sort-a-biopython-alignment-by-a-feature-other-then-id/

Does this seem like a good idea? Can anyone think of a nicer
example for custom sort ordering for the doctest or Tutorial?

Thanks,

Peter


More information about the Biopython-dev mailing list