MassExplainer#
- class pyopenms.MassExplainer#
Bases:
objectComputes empirical formulas for given mass differences using a set of allowed elements
- __init__() None#
- __init__(adduct_base: collections.abc.Sequence[pyopenms.Adduct]) None
- __init__(q_min: int, q_max: int, max_span: int, thresh_logp: float) None
- __init__(adduct_base: collections.abc.Sequence[pyopenms.Adduct], q_min: int, q_max: int, max_span: int, thresh_logp: float, max_neutrals: int) None
Methods
__init__()compute([include_identity])Compute all possible mass differences and their explanations
Get the current set of allowed adducts
getCompomerById(id)Returns a copy of the compomer with the given ID
query(net_charge, mass_to_explain, ...)Search for explanations of a given mass difference, returns (count, explanations)
setAdductBase(adduct_base)Set the base set of allowed adducts
- compute(include_identity: bool = False) None#
Compute all possible mass differences and their explanations
- getAdductBase() list[pyopenms.Adduct]#
Get the current set of allowed adducts
- getCompomerById(id: int) pyopenms.Compomer#
Returns a copy of the compomer with the given ID
- query(net_charge: int, mass_to_explain: float, mass_delta: float, thresh_log_p: float) tuple#
Search for explanations of a given mass difference, returns (count, explanations)
- setAdductBase(adduct_base: collections.abc.Sequence[pyopenms.Adduct]) None#
Set the base set of allowed adducts