Errors¶
Common errors and status codes for the easel
and hmmer
modules.
AllocationError¶
UnexpectedError¶
- exception pyhmmer.errors.UnexpectedError(RuntimeError)¶
An unexpected error that happened in the C code.
As a user of this library, you should never see this exception being raised. If you do, please open an issue with steps to reproduce on the bug tracker, so that proper error handling can be added to the relevant part of the bindings.
- __init__(code, function)¶
None
- __repr__()¶
None
- __str__()¶
None
EaselError¶
AlphabetMismatch¶
- 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 ..., found ...
New in version 0.3.0.
- __eq__(other)¶
None
- __init__(expected, actual)¶
None
- __repr__()¶
None
- __str__()¶
None
ServerError¶
MissingCutoffs¶
- exception pyhmmer.errors.MissingCutoffs(ValueError)¶
The model is missing bitscore cutoffs required by the pipeline.
New in version 0.8.2.
New in version 0.10.8: The
model_name
andbit_cutoffs
displayed in the error message.- __init__(model_name=None, bit_cutoffs=None)¶
None
- __repr__()¶
None
- __str__()¶
None