Entering edit mode
2.2 years ago
AveryB
•
0
I have multiple genbank gz files that I'm trying to sort by the molecule_type in biopython. For it to grab the protein gz files and the nucleotides in a separate entry.
@Istvan Albert I'm new to Biopython and trying to figure it out, I was able to print out what you suggested above. I have three gb records, genome.gb, bacteria1.gb, bacteria2.gb that have several entries inside them and I want to sort them just the records themselves by type?
Make a list that contains all records, then use the
sort
function with a key as explained here:https://docs.python.org/3/howto/sorting.html
then you'll have a sorted list