OpenMS
2.8.0
|
#include <OpenMS/ANALYSIS/ID/SiriusAdapterAlgorithm.h>
Classes | |
class | Fingerid |
class | ParameterModifier |
class | ParameterSection |
class | Passatutto |
class | Preprocessing |
class | Project |
class | Sirius |
class | SiriusTemporaryFileSystemObjects |
Struct for temporary folder structure. More... | |
Public Member Functions | |
SiriusAdapterAlgorithm () | |
default constructor More... | |
bool | isFeatureOnly () const |
UInt | getFilterByNumMassTraces () const |
double | getPrecursorMzTolerance () const |
double | getPrecursorRtTolerance () const |
bool | precursorMzToleranceUnitIsPPM () const |
bool | isNoMasstraceInfoIsotopePattern () const |
int | getIsotopePatternIterations () const |
int | getNumberOfSiriusCandidates () const |
Accessors for Sirius Parameters. More... | |
void | updateExistingParameter (const Param ¶m) |
Updates all parameters that already exist in this DefaultParamHandler with the values provided by the input param object. More... | |
bool | hasFullNameParameter (const String &name) const |
Checks whether this DefaultParamHandler has a ParamEntry with the provided name. More... | |
int | getNumberOfCSIFingerIDCandidates () const |
void | preprocessingSirius (const String &featureinfo, const MSExperiment &spectra, FeatureMapping::FeatureMappingInfo &fm_info, FeatureMapping::FeatureToMs2Indices &feature_mapping) const |
Preprocessing needed for SIRIUS. More... | |
void | logFeatureSpectraNumber (const String &featureinfo, const FeatureMapping::FeatureToMs2Indices &feature_mapping, const MSExperiment &spectra) const |
logs number of features and spectra used More... | |
const vector< String > | callSiriusQProcess (const String &tmp_ms_file, const String &tmp_out_dir, String &executable, const String &out_csifingerid, const bool decoy_generation) const |
Call SIRIUS with QProcess. More... | |
Public Member Functions inherited from DefaultParamHandler | |
DefaultParamHandler (const String &name) | |
Constructor with name that is displayed in error messages. More... | |
DefaultParamHandler (const DefaultParamHandler &rhs) | |
Copy constructor. More... | |
virtual | ~DefaultParamHandler () |
Destructor. More... | |
virtual DefaultParamHandler & | operator= (const DefaultParamHandler &rhs) |
Assignment operator. More... | |
virtual bool | operator== (const DefaultParamHandler &rhs) const |
Equality operator. More... | |
void | setParameters (const Param ¶m) |
Sets the parameters. More... | |
const Param & | getParameters () const |
Non-mutable access to the parameters. More... | |
const Param & | getDefaults () const |
Non-mutable access to the default parameters. More... | |
const String & | getName () const |
Non-mutable access to the name. More... | |
void | setName (const String &name) |
Mutable access to the name. More... | |
const std::vector< String > & | getSubsections () const |
Non-mutable access to the registered subsections. More... | |
Static Public Member Functions | |
static String | determineSiriusExecutable (String &executable) |
Checks if the provided String points to a valid SIRIUS executable, otherwise tries to select the executable from the environment. More... | |
static void | sortSiriusWorkspacePathsByScanIndex (std::vector< String > &subdirs) |
Sort function using the extracted scan_index from the sirius workspace file path. More... | |
Static Public Member Functions inherited from DefaultParamHandler | |
static void | writeParametersToMetaValues (const Param &write_this, MetaInfoInterface &write_here, const String &key_prefix="") |
Writes all parameters to meta values. More... | |
Private Types | |
using | SiriusSubtool = ParameterSection |
Private Attributes | |
Preprocessing | preprocessing |
Project | project |
Sirius | sirius |
Fingerid | fingerid |
Passatutto | passatutto |
Additional Inherited Members | |
Protected Member Functions inherited from DefaultParamHandler | |
virtual void | updateMembers_ () |
This method is used to update extra member variables at the end of the setParameters() method. More... | |
void | defaultsToParam_ () |
Updates the parameters after the defaults have been set in the constructor. More... | |
Protected Attributes inherited from DefaultParamHandler | |
Param | param_ |
Container for current parameters. More... | |
Param | defaults_ |
Container for default parameters. This member should be filled in the constructor of derived classes! More... | |
std::vector< String > | subsections_ |
Container for registered subsections. This member should be filled in the constructor of derived classes! More... | |
String | error_name_ |
Name that is displayed in error messages during the parameter checking. More... | |
bool | check_defaults_ |
If this member is set to false no checking if parameters in done;. More... | |
bool | warn_empty_defaults_ |
If this member is set to false no warning is emitted when defaults are empty;. More... | |
|
private |
default constructor
const vector<String> callSiriusQProcess | ( | const String & | tmp_ms_file, |
const String & | tmp_out_dir, | ||
String & | executable, | ||
const String & | out_csifingerid, | ||
const bool | decoy_generation | ||
) | const |
Call SIRIUS with QProcess.
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). |
Checks if the provided String points to a valid SIRIUS executable, otherwise tries to select the executable from the environment.
executable | Path to the potential executable |
|
inline |
|
inline |
|
inline |
|
inline |
Accessors for Sirius Parameters.
|
inline |
|
inline |
bool hasFullNameParameter | ( | const String & | name | ) | const |
Checks whether this DefaultParamHandler has a ParamEntry with the provided name.
name | The name of the ParamEntry that should be checked for its existence in this DefaultParamHandler |
|
inline |
|
inline |
void logFeatureSpectraNumber | ( | const String & | featureinfo, |
const FeatureMapping::FeatureToMs2Indices & | feature_mapping, | ||
const MSExperiment & | spectra | ||
) | const |
logs number of features and spectra used
Prints the number of features and spectra used (OPENMS_LOG_INFO)
featureinfo | Path to featureXML |
feature_mapping | FeatureToMs2Indices with feature mapping |
spectra | Input of MSExperiment with spectra information |
|
inline |
void preprocessingSirius | ( | const String & | featureinfo, |
const MSExperiment & | spectra, | ||
FeatureMapping::FeatureMappingInfo & | fm_info, | ||
FeatureMapping::FeatureToMs2Indices & | feature_mapping | ||
) | const |
Preprocessing needed for SIRIUS.
Filter number of masstraces and perform feature mapping.
featureinfo | Path to featureXML |
spectra | Input of MSExperiment with spectra information |
fm_info | Emtpy - stores FeatureMaps and KDTreeMaps internally |
feature_mapping | Empty FeatureToMs2Indices |
|
static |
Sort function using the extracted scan_index from the sirius workspace file path.
void updateExistingParameter | ( | const Param & | param | ) |
Updates all parameters that already exist in this DefaultParamHandler with the values provided by the input param object.
param | The Param object supplying updated parameter values. Keys that exist in the param parameter, but not in this DefaultParamHander, are ignored. |
|
private |
|
private |
|
private |
|
private |
|
private |