OpenMS
Loading...
Searching...
No Matches
NucleicAcidSearchEngine Class Reference
Inheritance diagram for NucleicAcidSearchEngine:
TOPPBase

Classes

struct  AnnotatedHit
 
class  HasInvalidLength
 
struct  PrecursorInfo
 

Public Member Functions

 NucleicAcidSearchEngine ()
 
- Public Member Functions inherited from TOPPBase
 TOPPBase ()=delete
 No default constructor.
 
 TOPPBase (const TOPPBase &)=delete
 No default copy constructor.
 
 TOPPBase (const std::string &name, const std::string &description, const std::vector< Citation > &citations={}, bool toolhandler_test=true)
 Constructor.
 
virtual ~TOPPBase ()
 Destructor.
 
ExitCodes main (int argc, const char **argv)
 Main routine of all TOPP applications.
 
std::string getToolPrefix () const
 Returns the prefix used to identify the tool.
 
std::string getDocumentationURL () const
 Returns a link to the documentation of the tool (accessible on our servers and only after inclusion in the nightly branch or a release).
 

Protected Types

typedef multimap< double, AnnotatedHit, greater< double > > HitsByScore
 

Protected Member Functions

void registerOptionsAndFlags_ () override
 Sets the valid command line options (with argument) and flags (without argument).
 
void filterBlacklistedIons_ (MSSpectrum &theo_spectrum, const vector< double > &blacklist_mz, double tolerance_ppm) const
 
set< ConstRibonucleotidePtr > getModifications_ (const set< std::string > &mod_names)
 
Size countCleavageSensitiveMods_ (const NASequence &sequence, const set< std::string > &sensitive_codes) const
 Count cleavage-sensitive placements already included in a digested candidate.
 
void registerDigestedOligo_ (IdentificationData &id_data, IdentificationData::ParentSequenceRef parent_ref, const NASequence &parent, const RNaseDigestion::DigestionProduct &product) const
 Register a digestion product with its original parent coordinates and neighbors.
 
AdductInfo parseAdduct_ (const std::string &adduct)
 
void deisotopeAndSingleChargeMSSpectrum_ (MSSpectrum &in, Int min_charge, Int max_charge, double fragment_tolerance, bool fragment_unit_ppm, bool keep_only_deisotoped=false, Size min_isopeaks=3, Size max_isopeaks=10, bool make_single_charged=true)
 
double flashMassUpperBound_ (double mz, Int charge, bool negative_mode) const
 
void preprocessSpectra_ (PeakMap &exp, double fragment_mass_tolerance, bool fragment_mass_tolerance_unit_ppm, bool single_charge_spectra, bool negative_mode, Int min_charge, Int max_charge, bool include_unknown_charge, bool use_window_mower, double window_size, int window_peakcount, const std::string &window_movetype, bool use_nlargest, int nlargest_n, bool remove_precursor, double precursor_mass_tolerance, bool precursor_tolerance_ppm, int precursor_peak_isotopes, const std::string &deisotoping, double flash_min_cos, double flash_min_snr)
 
double calculatePrecursorMass_ (double mz, Int charge, Int isotope, double adduct_mass, bool negative_mode)
 
void resolveAmbiguousMods_ (HitsByScore &hits)
 
void sortHitsByValue_ (HitsByScore &hits) const
 Sort tied hits by molecule, precursor, and adduct values before registration.
 
void retainTopHit_ (HitsByScore &hits, double score, AnnotatedHit hit, Size top_hits) const
 Retain complete score groups at the report cutoff, independent of arrival order.
 
void postProcessHits_ (const PeakMap &exp, vector< HitsByScore > &annotated_hits, IdentificationData &id_data, bool negative_mode)
 
double calculateFragmentCoverage_ (const NASequence &oligo, const vector< PeptideHit::PeakAnnotation > &annotations)
 Check if all internal positions of an oligonucleotide have fragment coverage.
 
void calculateAndFilterFDR_ (IdentificationData &id_data, bool only_top_hits)
 
void generateLFQInput_ (IdentificationData &id_data, const std::string &out_file)
 
ExitCodes main_ (int, const char **) override
 The actual "main" method. main_() is invoked by main().
 
- Protected Member Functions inherited from TOPPBase
std::string getParamArgument_ (const Param::ParamEntry &entry) const
 Utility function that determines a suitable argument value for the given Param::ParamEntry.
 
std::vector< ParameterInformation > paramToParameterInformation_ (const Param &param) const
 Translates the given parameter object into a vector of ParameterInformation, that can be utilized for cl parsing.
 
ParameterInformation paramEntryToParameterInformation_ (const Param::ParamEntry &entry, const std::string &argument="", const std::string &full_name="") const
 Transforms a ParamEntry object to command line parameter (ParameterInformation).
 
void registerParamSubsectionsAsTOPPSubsections_ (const Param &param)
 
void registerFullParam_ (const Param &param)
 Register command line parameters for all entries in a Param object.
 
void registerStringOption_ (const std::string &name, const std::string &argument, const std::string &default_value, const std::string &description, bool required=true, bool advanced=false)
 Registers a string option.
 
void setValidStrings_ (const std::string &name, const std::vector< std::string > &strings)
 Sets the valid strings for a string option or a whole string list.
 
void setValidStrings_ (const std::string &name, const std::string vstrings[], int count)
 Sets the valid strings for a string option or a whole string list.
 
void registerInputFile_ (const std::string &name, const std::string &argument, const std::string &default_value, const std::string &description, bool required=true, bool advanced=false, const StringList &tags=StringList())
 Registers an input file option.
 
void registerOutputFile_ (const std::string &name, const std::string &argument, const std::string &default_value, const std::string &description, bool required=true, bool advanced=false)
 Registers an output file option.
 
void registerOutputPrefix_ (const std::string &name, const std::string &argument, const std::string &default_value, const std::string &description, bool required=true, bool advanced=false)
 Registers an output file prefix used for tools with multiple file output.
 
void registerOutputDir_ (const std::string &name, const std::string &argument, const std::string &default_value, const std::string &description, bool required=true, bool advanced=false)
 Registers an output directory used for tools with multiple output files which are not an output file list, i.e. do not correspond to the number of input files.
 
void setValidFormats_ (const std::string &name, const std::vector< std::string > &formats, const bool force_OpenMS_format=true)
 Sets the formats for a input/output file option or for all members of an input/output file lists.
 
void registerDoubleOption_ (const std::string &name, const std::string &argument, double default_value, const std::string &description, bool required=true, bool advanced=false)
 Registers a double option.
 
void setMinInt_ (const std::string &name, Int min)
 Sets the minimum value for the integer parameter(can be a list of integers,too) name.
 
void setMaxInt_ (const std::string &name, Int max)
 Sets the maximum value for the integer parameter(can be a list of integers,too) name.
 
void setMinFloat_ (const std::string &name, double min)
 Sets the minimum value for the floating point parameter(can be a list of floating points,too) name.
 
void setMaxFloat_ (const std::string &name, double max)
 Sets the maximum value for the floating point parameter(can be a list of floating points,too) name.
 
void registerIntOption_ (const std::string &name, const std::string &argument, Int default_value, const std::string &description, bool required=true, bool advanced=false)
 Registers an integer option.
 
void registerIntList_ (const std::string &name, const std::string &argument, const IntList &default_value, const std::string &description, bool required=true, bool advanced=false)
 Registers a list of integers option.
 
void registerDoubleList_ (const std::string &name, const std::string &argument, const DoubleList &default_value, const std::string &description, bool required=true, bool advanced=false)
 Registers a list of doubles option.
 
void registerStringList_ (const std::string &name, const std::string &argument, const StringList &default_value, const std::string &description, bool required=true, bool advanced=false)
 Registers a list of strings option.
 
void registerInputFileList_ (const std::string &name, const std::string &argument, const StringList &default_value, const std::string &description, bool required=true, bool advanced=false, const StringList &tags=StringList())
 Registers a list of input files option.
 
void registerOutputFileList_ (const std::string &name, const std::string &argument, const StringList &default_value, const std::string &description, bool required=true, bool advanced=false)
 Registers a list of output files option.
 
void registerFlag_ (const std::string &name, const std::string &description, bool advanced=false)
 Registers a flag.
 
void registerSubsection_ (const std::string &name, const std::string &description)
 Registers an allowed subsection in the INI file (usually from OpenMS algorithms).
 
void registerTOPPSubsection_ (const std::string &name, const std::string &description)
 Registers an allowed subsection in the INI file originating from the TOPP tool itself.
 
void addEmptyLine_ ()
 Adds an empty line between registered variables in the documentation.
 
std::string getStringOption_ (const std::string &name) const
 Returns the value of a previously registered string option (use getOutputDirOption() for output directories)
 
std::string getOutputDirOption (const std::string &name) const
 Returns the value of a previously registered output_dir option.
 
double getDoubleOption_ (const std::string &name) const
 Returns the value of a previously registered double option.
 
Int getIntOption_ (const std::string &name) const
 Returns the value of a previously registered integer option.
 
StringList getStringList_ (const std::string &name) const
 Returns the value of a previously registered StringList.
 
IntList getIntList_ (const std::string &name) const
 Returns the value of a previously registered IntList.
 
DoubleList getDoubleList_ (const std::string &name) const
 Returns the value of a previously registered DoubleList.
 
bool getFlag_ (const std::string &name) const
 Returns the value of a previously registered flag.
 
const ParameterInformation & findEntry_ (const std::string &name) const
 Finds the entry in the parameters_ array that has the name name.
 
Param const & getParam_ () const
 Return all parameters relevant to this TOPP tool.
 
void checkParam_ (const Param &param, const std::string &filename, const std::string &location) const
 Checks top-level entries of param according to the information during registration.
 
void fileParamValidityCheck_ (const StringList &param_value, const std::string &param_name, const ParameterInformation &p) const
 checks if files of an input file list exist
 
void fileParamValidityCheck_ (std::string &param_value, const std::string &param_name, const ParameterInformation &p) const
 checks if an input file exists (respecting the flags)
 
virtual bool findExecutable_ (std::string &executable) const
 Searches for the executable an input file parameter tagged 'is_executable' names.
 
void checkIfIniParametersAreApplicable_ (const Param &ini_params)
 Checks if the parameters of the provided ini file are applicable to this tool.
 
void printUsage_ ()
 Prints the tool-specific command line options and appends the common options.
 
void writeLogInfo_ (const std::string &text) const
 Writes a string to the log file and to OPENMS_LOG_INFO.
 
void writeLogWarn_ (const std::string &text) const
 Writes a string to the log file and to OPENMS_LOG_WARN.
 
void writeLogError_ (const std::string &text) const
 Writes a string to the log file and to OPENMS_LOG_ERROR.
 
void writeDebug_ (const std::string &text, UInt min_level) const
 Writes a string to the log file and to OPENMS_LOG_DEBUG if the debug level is at least min_level.
 
void writeDebug_ (const std::string &text, const Param &param, UInt min_level) const
 Writes a std::string followed by a Param to the log file and to OPENMS_LOG_DEBUG if the debug level is at least min_level.
 
const std::string & getIniLocation_ () const
 Returns the location of the ini file where parameters are taken from, i.e. "TOPPTool:1:" for a tool named "TOPPTool". Note the ':' at the end.
 
const std::string & toolName_ () const
 Returns the tool name.
 
void inputFileReadable_ (const std::string &filename, const std::string &param_name) const
 Checks if an input file exists, is readable and is not empty.
 
void outputFileWritable_ (const std::string &filename, const std::string &param_name) const
 Checks if an output file is writable.
 
bool parseRange_ (const std::string &text, double &low, double &high) const
 Parses a range string ([a]:[b]) into two variables (doubles)
 
bool parseRange_ (const std::string &text, Int &low, Int &high) const
 Parses a range string ([a]:[b]) into two variables (integers)
 
void addDataProcessing_ (ConsensusMap &map, const DataProcessing &dp) const
 Data processing setter for consensus maps.
 
void addDataProcessing_ (FeatureMap &map, const DataProcessing &dp) const
 Data processing setter for feature maps.
 
void addDataProcessing_ (PeakMap &map, const DataProcessing &dp) const
 Data processing setter for peak maps.
 
DataProcessing getProcessingInfo_ (DataProcessing::ProcessingAction action) const
 Returns the data processing information.
 
DataProcessing getProcessingInfo_ (const std::set< DataProcessing::ProcessingAction > &actions) const
 Returns the data processing information.
 

Static Protected Member Functions

static optional< double > calculatePrecursorPercentage_ (const MSSpectrum &spectrum, double mass_tolerance, bool tolerance_ppm)
 Return no value for spectra without one selected precursor or a positive base peak.
 
static void updatePrecursorPercentage_ (MSSpectrum &spectrum, bool enabled, double mass_tolerance, bool tolerance_ppm)
 Replace this run's derived metric; never reuse a stale input annotation.
 

Protected Attributes

vector< std::string > fragment_ion_codes_
 
map< std::string, std::string > ambiguous_mods_
 
bool resolve_ambiguous_mods_
 
- Protected Attributes inherited from TOPPBase
std::string version_
 Version string (if empty, the OpenMS/TOPP version is printed)
 
std::string verboseVersion_
 Version string including additional revision/date time information. Note: This differs from version_ only if not provided by the user.
 
std::vector< Citation > citations_
 Papers, specific for this tool (will be shown in '–help')
 
bool toolhandler_test_
 Enable the ToolHandler tests.
 
ProgressLogger::LogType log_type_
 Type of progress logging.
 
bool test_mode_
 Test mode.
 
Int debug_level_
 Debug level set by -debug.
 

Private Types

using ConstRibonucleotidePtr = const Ribonucleotide *
 

Additional Inherited Members

- Public Types inherited from TOPPBase
enum  ExitCodes {
  EXECUTION_OK , INPUT_FILE_NOT_FOUND , INPUT_FILE_NOT_READABLE , INPUT_FILE_CORRUPT ,
  INPUT_FILE_EMPTY , CANNOT_WRITE_OUTPUT_FILE , ILLEGAL_PARAMETERS , MISSING_PARAMETERS ,
  UNKNOWN_ERROR , EXTERNAL_PROGRAM_ERROR , PARSE_ERROR , INCOMPATIBLE_INPUT_DATA ,
  INTERNAL_ERROR , UNEXPECTED_RESULT , EXTERNAL_PROGRAM_NOTFOUND
}
 Exit codes. More...
 
- Static Public Member Functions inherited from TOPPBase
static void setMaxNumberOfThreads (int num_threads)
 Sets the maximal number of usable threads.
 
- Static Public Attributes inherited from TOPPBase
static const char * TAG_OUTPUT_FILE = ParamTags::TAG_OUTPUT_FILE
 Parameter tag names; the definitions live in OpenMS/DATASTRUCTURES/ParamTags.h (core library)
 
static const char * TAG_INPUT_FILE = ParamTags::TAG_INPUT_FILE
 
static const char * TAG_OUTPUT_DIR = ParamTags::TAG_OUTPUT_DIR
 
static const char * TAG_OUTPUT_PREFIX = ParamTags::TAG_OUTPUT_PREFIX
 
static const char * TAG_ADVANCED = ParamTags::TAG_ADVANCED
 
static const char * TAG_REQUIRED = ParamTags::TAG_REQUIRED
 
static const Citation cite_openms
 The latest and greatest OpenMS citation.
 
- Static Protected Attributes inherited from TOPPBase
static std::string topp_ini_file_
 .TOPP.ini file for storing system default parameters
 

Class Documentation

◆ NucleicAcidSearchEngine::AnnotatedHit

struct NucleicAcidSearchEngine::AnnotatedHit
Class Members
vector< PeakAnnotation > annotations
IdentifiedOligoRef oligo_ref
double precursor_error_ppm = 0.0
const PrecursorInfo * precursor_ref = nullptr
NASequence sequence

Member Typedef Documentation

◆ ConstRibonucleotidePtr

using ConstRibonucleotidePtr = const Ribonucleotide*
private

◆ HitsByScore

typedef multimap<double, AnnotatedHit, greater<double> > HitsByScore
protected

Constructor & Destructor Documentation

◆ NucleicAcidSearchEngine()

Member Function Documentation

◆ calculateAndFilterFDR_()

◆ calculateFragmentCoverage_()

double calculateFragmentCoverage_ ( const NASequence &  oligo,
const vector< PeptideHit::PeakAnnotation > &  annotations 
)
inlineprotected

Check if all internal positions of an oligonucleotide have fragment coverage.

References OPENMS_LOG_WARN, NASequence::size(), and OpenMS::StringUtils::toInt64().

◆ calculatePrecursorMass_()

double calculatePrecursorMass_ ( double  mz,
Int  charge,
Int  isotope,
double  adduct_mass,
bool  negative_mode 
)
inlineprotected

◆ calculatePrecursorPercentage_()

static optional< double > calculatePrecursorPercentage_ ( const MSSpectrum &  spectrum,
double  mass_tolerance,
bool  tolerance_ppm 
)
inlinestaticprotected

Return no value for spectra without one selected precursor or a positive base peak.

References SpectrumSettings::getPrecursors().

Referenced by updatePrecursorPercentage_().

◆ countCleavageSensitiveMods_()

Size countCleavageSensitiveMods_ ( const NASequence &  sequence,
const set< std::string > &  sensitive_codes 
) const
inlineprotected

Count cleavage-sensitive placements already included in a digested candidate.

◆ deisotopeAndSingleChargeMSSpectrum_()

void deisotopeAndSingleChargeMSSpectrum_ ( MSSpectrum &  in,
Int  min_charge,
Int  max_charge,
double  fragment_tolerance,
bool  fragment_unit_ppm,
bool  keep_only_deisotoped = false,
Size  min_isopeaks = 3,
Size  max_isopeaks = 10,
bool  make_single_charged = true 
)
inlineprotected

◆ filterBlacklistedIons_()

void filterBlacklistedIons_ ( MSSpectrum &  theo_spectrum,
const vector< double > &  blacklist_mz,
double  tolerance_ppm 
) const
inlineprotected

References MSSpectrum::select().

◆ flashMassUpperBound_()

double flashMassUpperBound_ ( double  mz,
Int  charge,
bool  negative_mode 
) const
inlineprotected

◆ generateLFQInput_()

void generateLFQInput_ ( IdentificationData &  id_data,
const std::string &  out_file 
)
inlineprotected

◆ getModifications_()

set< ConstRibonucleotidePtr > getModifications_ ( const set< std::string > &  mod_names)
inlineprotected

◆ main_()

ExitCodes main_ ( int  argc,
const char **  argv 
)
inlineoverrideprotectedvirtual

The actual "main" method. main_() is invoked by main().

Implements TOPPBase.

References ProcessingStep::actions, PeakFileOptions::addMSLevel(), ScoredProcessingResult::addProcessingStep(), MSExperiment::addSpectrum(), NucleicAcidSearchEngine::AnnotatedHit::annotations, Ribonucleotide::ANYWHERE, ModifiedNASequenceGenerator::applyFixedModifications(), ModifiedNASequenceGenerator::applyVariableModifications(), ProcessingSoftware::assigned_scores, File::basename(), IDDataContainer< Value, Key, Prefix, KeyMembers >::begin(), MSExperiment::begin(), FileTypes::BRUKER_TDF, IdentificationData::calculateCoverages(), DBSearchParam::charges, PeakFileOptions::clearMSLevels(), RNaseDigestion::CleavageSensitiveModGroups::combined(), MetaboliteSpectralMatching::computeHyperScore(), MetaboliteSpectralMatching::computeMVHScore(), RNAPrecursorCorrector::correct(), RNaseDigestion::CleavageSensitiveModGroups::cuts_after_sensitive, RNaseDigestion::CleavageSensitiveModGroups::cuts_before_sensitive, DBSearchParam::database, DBSearchParam::database_version, DBSearchParam::digestion_enzyme, RNaseDigestion::digestWithCleavageSensitiveMods(), MSExperiment::end(), IDDataContainer< Value, Key, Prefix, KeyMembers >::end(), ProgressLogger::endProgress(), DBSearchParam::enzyme_term_specificity, IdentificationDataConverter::exportIDs(), IdentificationDataConverter::exportMzTab(), DBSearchParam::fixed_mods, DBSearchParam::fragment_mass_tolerance, DBSearchParam::fragment_tolerance_ppm, NASequence::fromString(), IdentificationData::getCurrentProcessingStep(), IdentificationData::getDBSearchParams(), IdentificationData::getIdentifiedOligos(), AdductInfo::getMassShift(), NucleicAcidSpectrumGenerator::getMultipleSpectra(), MSExperiment::getNrSpectra(), MzTab::getNucleicAcidSectionRows(), IdentificationData::getObservations(), MzTab::getOligonucleotideSectionRows(), MzTab::getOSMSectionRows(), DefaultParamHandler::getParameters(), IdentificationData::getParentSequences(), MSExperiment::getPrimaryMSRunPath(), MSSpectrum::getRT(), DataProcessing::IDENTIFICATION, FileTypes::IDXML, IdentificationDataConverter::importSequences(), RNaseDigestion::inferCleavageSensitiveMods(), OMSFile::load(), FASTAFile::load(), FileHandler::loadExperiment(), DBSearchParam::mass_type, DBSearchParam::max_length, DBSearchParam::min_length, DBSearchParam::missed_cleavages, DBSearchParam::molecule_type, FileTypes::MZML, NucleicAcidSearchEngine::AnnotatedHit::oligo_ref, OPENMS_LOG_DEBUG, OPENMS_LOG_ERROR, OPENMS_LOG_INFO, OPENMS_LOG_WARN, NucleicAcidSearchEngine::AnnotatedHit::precursor_error_ppm, DBSearchParam::precursor_mass_tolerance, NucleicAcidSearchEngine::AnnotatedHit::precursor_ref, DBSearchParam::precursor_tolerance_ppm, InputFile::primary_files, FileTypes::RAW, IdentificationData::registerAdduct(), IdentificationData::registerDBSearchParam(), IdentificationData::registerInputFile(), IdentificationData::registerParentSequence(), IdentificationData::registerProcessingSoftware(), IdentificationData::registerProcessingStep(), IdentificationData::registerScoreType(), NucleicAcidSearchEngine::AnnotatedHit::sequence, IdentificationData::setCurrentProcessingStep(), RNaseDigestion::setEnzyme(), ProgressLogger::setLogType(), MetaInfoInterface::setMetaValue(), EnzymaticDigestion::setMissedCleavages(), MSSpectrum::setName(), FileHandler::setOptions(), DefaultParamHandler::setParameters(), ProgressLogger::setProgress(), MSSpectrum::setRT(), MSExperiment::setSpectra(), Param::setValue(), Software::setVersion(), IDDataContainer< Value, Key, Prefix, KeyMembers >::size(), MSExperiment::size(), MSExperiment::sortSpectra(), ProgressLogger::startProgress(), OMSFile::store(), MzTabFile::store(), BedRModFile::store(), FileHandler::storeExperiment(), FileHandler::storeIdentifications(), RNAPrecursorCorrector::storeReport(), DBSearchParam::taxonomy, NASequence::toString(), and DBSearchParam::variable_mods.

◆ parseAdduct_()

AdductInfo parseAdduct_ ( const std::string &  adduct)
inlineprotected

◆ postProcessHits_()

◆ preprocessSpectra_()

void preprocessSpectra_ ( PeakMap &  exp,
double  fragment_mass_tolerance,
bool  fragment_mass_tolerance_unit_ppm,
bool  single_charge_spectra,
bool  negative_mode,
Int  min_charge,
Int  max_charge,
bool  include_unknown_charge,
bool  use_window_mower,
double  window_size,
int  window_peakcount,
const std::string &  window_movetype,
bool  use_nlargest,
int  nlargest_n,
bool  remove_precursor,
double  precursor_mass_tolerance,
bool  precursor_tolerance_ppm,
int  precursor_peak_isotopes,
const std::string &  deisotoping,
double  flash_min_cos,
double  flash_min_snr 
)
inlineprotected

◆ registerDigestedOligo_()

◆ registerOptionsAndFlags_()

void registerOptionsAndFlags_ ( )
inlineoverrideprotectedvirtual

Sets the valid command line options (with argument) and flags (without argument).

The options '-ini' '-log' '-debug' and the flag '–help' are automatically registered.

A string option whose valid strings are exactly 'true' and 'false' (see setValidStrings_()) may be given without a value on the command line, which means 'true'; a flag may be followed by an explicit 'true' or 'false' (see registerFlag_()).

Implements TOPPBase.

References fragment_ion_codes_, RibonucleotideDB::getInstance(), TOPPBase::registerDoubleList_(), TOPPBase::registerDoubleOption_(), TOPPBase::registerFlag_(), TOPPBase::registerInputFile_(), TOPPBase::registerIntList_(), TOPPBase::registerIntOption_(), TOPPBase::registerOutputFile_(), TOPPBase::registerStringList_(), TOPPBase::registerStringOption_(), TOPPBase::registerTOPPSubsection_(), OpenMS::StringUtils::remove(), TOPPBase::setMaxFloat_(), TOPPBase::setMaxInt_(), TOPPBase::setMinFloat_(), TOPPBase::setMinInt_(), TOPPBase::setValidFormats_(), and TOPPBase::setValidStrings_().

◆ resolveAmbiguousMods_()

◆ retainTopHit_()

void retainTopHit_ ( HitsByScore &  hits,
double  score,
AnnotatedHit  hit,
Size  top_hits 
) const
inlineprotected

Retain complete score groups at the report cutoff, independent of arrival order.

◆ sortHitsByValue_()

void sortHitsByValue_ ( HitsByScore &  hits) const
inlineprotected

Sort tied hits by molecule, precursor, and adduct values before registration.

◆ updatePrecursorPercentage_()

static void updatePrecursorPercentage_ ( MSSpectrum &  spectrum,
bool  enabled,
double  mass_tolerance,
bool  tolerance_ppm 
)
inlinestaticprotected

Replace this run's derived metric; never reuse a stale input annotation.

References calculatePrecursorPercentage_(), MetaInfoInterface::removeMetaValue(), and MetaInfoInterface::setMetaValue().

Member Data Documentation

◆ ambiguous_mods_

map<std::string, std::string> ambiguous_mods_
protected

◆ fragment_ion_codes_

vector<std::string> fragment_ion_codes_
protected

◆ resolve_ambiguous_mods_

bool resolve_ambiguous_mods_
protected

Referenced by getModifications_().