I would like to know if there is there a way to sort a biopython alignment by a feature other then ID? In the biopython cookbook (http://www.bio-cloud.info/Biopython/en/ch6.html) there is a way to sort the alignment by ID. Is it possible to sort the sequence records in the alignment by another feature such as description or name?
DK: Thanks for the reply! While I get an error with the first portion ("TypeError: sort() got an unexpected keyword argument 'key'") the second option seems to be working fine.
Note the official tutorial is http://biopython.org/DIST/docs/tutorial/Tutorial.html - what you are looking at is an out of dae experimental reformatting.