gunshotmatch_pipeline.nist_ms_search
Configuration for pyms_nist_search and NIST MS Search.
Classes:
|
Initialize the NIST MS Serch engine on demand. |
|
Configuration for |
Functions:
|
Defer initialization of the NIST MS Serch engine until required (if at all). |
|
Returns the name and mass spectra of the compound with the given CAS number. |
|
Initialize the NIST MS Serch engine from |
-
class
LazyEngine(config, **kwargs)[source] Bases:
objectInitialize the NIST MS Serch engine on demand.
- Parameters
config (
PyMSNISTSearchCfg)**kwargs – Keyword arguments for
pyms_nist_search.win_engine.Engine
New in version 0.2.0.
Methods:
deinit()Cleanup the underlying engine and temporary directory.
Attributes:
The NIST MS Search engine.
-
class
PyMSNISTSearchCfg(library_path, user_library=False)[source] Bases:
ConfigConfiguration for
pyms_nist_search.- Parameters
Attributes:
Absolute path to the NIST library (mainlib or user).
-
engine_on_demand(config, **kwargs)[source] Defer initialization of the NIST MS Serch engine until required (if at all).
- Parameters
config (
PyMSNISTSearchCfg)**kwargs – Keyword arguments for
pyms_nist_search.win_engine.Engine
- Return type
New in version 0.2.0.
-
get_reference_data_for_cas(cas, pyms_nist_search_config)[source] Returns the name and mass spectra of the compound with the given CAS number.
- Parameters
cas (
str)pyms_nist_search_config (
PyMSNISTSearchCfg)
- Return type
New in version 0.11.0.
-
nist_ms_search_engine(config, **kwargs)[source] Initialize the NIST MS Serch engine from
pyms_nist_search.- Parameters
config (
PyMSNISTSearchCfg)**kwargs – Keyword arguments for
pyms_nist_search.win_engine.Engine
- Return type