SiriusAdapterAlgorithm#
- class pyopenms.SiriusAdapterAlgorithm#
Bases:
object
Cython implementation of _SiriusAdapterAlgorithm
- Original C++ documentation is available here
– Inherits from [‘DefaultParamHandler’]
- __init__()#
Overload:
- __init__(self) None
Overload:
- __init__(self, in_0: SiriusAdapterAlgorithm) None
Methods
Overload:
callSiriusQProcess
(self, tmp_ms_file, ...)Call SIRIUS with QProcess
determineSiriusExecutable
(self, executable)Checks if the provided String points to a valid SIRIUS executable, otherwise tries to select the executable from the environment
getDefaults
(self)Returns the default parameters
getFilterByNumMassTraces
(self)getName
(self)Returns the name
getParameters
(self)Returns the parameters
getPrecursorMzTolerance
(self)getPrecursorRtTolerance
(self)getSubsections
(self)isFeatureOnly
(self)logFeatureSpectraNumber
(self, featureinfo, ...)Logs number of features and spectra used
logInSiriusAccount
(self, executable, email, ...)Log in to SIRIUS using your personal account
preprocessingSirius
(self, featureinfo, ...)Preprocessing needed for SIRIUS
setName
(self, in_0)Sets the name
setParameters
(self, param)Sets the parameters
__static_SiriusAdapterAlgorithm_sortSiriusWorkspacePathsByScanIndex(subdirs: List[bytes] ) -> None
- callSiriusQProcess(self, tmp_ms_file: bytes | str | String, tmp_out_dir: bytes | str | String, executable: String, out_csifingerid: bytes | str | String, decoy_generation: bool) List[bytes] #
Call SIRIUS with QProcess
- Parameters:
tmp_ms_file – Path to temporary .ms file
tmp_out_dir – Path to temporary output folder
executable – Path to executable
out_csifingerid – Path to CSI:FingerID output (can be empty)
- determineSiriusExecutable(self, executable: String) bytes | str | String #
Checks if the provided String points to a valid SIRIUS executable, otherwise tries to select the executable from the environment
- Parameters:
executable – Path to the potential executable
- Returns:
Path to SIRIUS executable
- getFilterByNumMassTraces(self) int #
- getIsotopePatternIterations(self) int #
- getNumberOfSiriusCandidates(self) int #
- getPrecursorMzTolerance(self) float #
- getPrecursorRtTolerance(self) float #
- getSubsections(self) List[bytes] #
- isFeatureOnly(self) bool #
- isNoMasstraceInfoIsotopePattern(self) bool #
- logFeatureSpectraNumber(self, featureinfo: bytes | str | String, feature_mapping: FeatureMapping_FeatureToMs2Indices, spectra: MSExperiment) None #
Logs number of features and spectra used
Prints the number of features and spectra used (OPENMS_LOG_INFO)
- Parameters:
featureinfo – Path to featureXML
feature_mapping – FeatureToMs2Indices with feature mapping
spectra – Input of MSExperiment with spectra information
- logInSiriusAccount(self, executable: String, email: bytes | str | String, password: bytes | str | String) None #
Log in to SIRIUS using your personal account
- Parameters:
executable – Path to executable.
email – User account E-Mail.
password – User account password.
- precursorMzToleranceUnitIsPPM(self) bool #
- preprocessingSirius(self, featureinfo: bytes | str | String, spectra: MSExperiment, fm_info: FeatureMapping_FeatureMappingInfo, feature_mapping: FeatureMapping_FeatureToMs2Indices) None #
Preprocessing needed for SIRIUS
Filter number of masstraces and perform feature mapping
- Parameters:
featureinfo – Path to featureXML
spectra – Input of MSExperiment with spectra information
fm_info – Emtpy - stores FeatureMaps and KDTreeMaps internally
feature_mapping – Empty FeatureToMs2Indices
- sortSiriusWorkspacePathsByScanIndex()#
__static_SiriusAdapterAlgorithm_sortSiriusWorkspacePathsByScanIndex(subdirs: List[bytes] ) -> None