[Biopython-dev] Bio.AlignIO, Bio.Nexus, MrBayes, polymorphic sites, maximum line length

Peter biopython at maubp.freeserve.co.uk
Thu Dec 2 16:22:27 UTC 2010


On Thu, Dec 2, 2010 at 3:27 PM, Nick Loman <n.j.loman at bham.ac.uk> wrote:
>
> ...
>   raise NexusError('Unknown partition: '+interleave_by_partition)
> TypeError: cannot concatenate 'str' and 'bool' objects
>

That should probably be something like this to avoid the TypeError
in the exception:

raise NexusError('Unknown partition: %r' % interleave_by_partition)

>
> Which suggests that combine does not add partitions for each
> alignment. I could of course work around this with extra code.
>

Or that the code isn't expecting True for interleave_by_partition?
At first glance the expected argument type isn't obvious to me...

Peter




More information about the Biopython-dev mailing list