Closed Sann5 closed 5 months ago
Actually, the error you get was raised in the code that was preparing a nicer exception message, but it had a bug and raised a TypeError
instead. I fixed that and changed HMMFile.read
and HMMPressedFile.read
to raise AlphabetMismatch
in that case, either because the file contains HMMs in multiple alphabets, or because the alphabet given to create the HMMFile
is inconsistent with the alphabets of the HMMs in the file.
Fixed in v0.10.13
.
Assuming we have a hmm file containing profiles with different alphabets, and we run the following code:
Download and unzip amino_dna.hmm.zip
Open python, adjust the path to the file and run
The following will raise a
TypeError
with an uninformative message.It would be nice if instead, the message said something like: "Found profiles with different alphabets."