I have an interleaved Nexus file, were each block correspond to a gene in the alignment.
How could I split that file into separate alignments, one for each of those genes.
I have tried using the AlignIO module from biopython, but it just load the whole alignment as one big sequence for each taxa without any clear way to iterate through the genes (blocks) or interleaves of the alignment.
Do you know if there is a way to iterate over the blocks in the nexus file with Biopython? I could not find anything related on the Biopython documentation.
Thanks!