Value Errors#
- exception pyhmmer.errors.AlphabetMismatch(ValueError)#
A value error caused by an alphabet mismatch.
This error is raised on occasions where several arguments to a function have mismatching alphabets. For instance, passing a
DigitalSequence
to aBuilder
with different alphabets:>>> seq = easel.DigitalSequence(easel.Alphabet.dna()) >>> builder = plan7.Builder(easel.Alphabet.amino()) >>> builder.build(seq, plan7.Background(seq.alphabet)) Traceback (most recent call last): ... pyhmmer.errors.AlphabetMismatch: Expected amino alphabet, found DNA alphabet
Added in version 0.3.0.
- __init__(self, expected, actual=None)#
–
- exception pyhmmer.errors.MissingCutoffs(ValueError)#
The model is missing bitscore cutoffs required by the pipeline.
Added in version 0.8.2.
Added in version 0.10.8: The
model_name
andbit_cutoffs
displayed in the error message.- __init__(self, model_name=None, bit_cutoffs=None)#
–