OpenMS  2.5.0
NucleicAcidSpectrumGenerator.h
Go to the documentation of this file.
1 // --------------------------------------------------------------------------
2 // OpenMS -- Open-Source Mass Spectrometry
3 // --------------------------------------------------------------------------
4 // Copyright The OpenMS Team -- Eberhard Karls University Tuebingen,
5 // ETH Zurich, and Freie Universitaet Berlin 2002-2020.
6 //
7 // This software is released under a three-clause BSD license:
8 // * Redistributions of source code must retain the above copyright
9 // notice, this list of conditions and the following disclaimer.
10 // * Redistributions in binary form must reproduce the above copyright
11 // notice, this list of conditions and the following disclaimer in the
12 // documentation and/or other materials provided with the distribution.
13 // * Neither the name of any author or any participating institution
14 // may be used to endorse or promote products derived from this software
15 // without specific prior written permission.
16 // For a full list of authors, refer to the file AUTHORS.
17 // --------------------------------------------------------------------------
18 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
19 // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21 // ARE DISCLAIMED. IN NO EVENT SHALL ANY OF THE AUTHORS OR THE CONTRIBUTING
22 // INSTITUTIONS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
23 // EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
24 // PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
25 // OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
26 // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
27 // OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
28 // ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 //
30 // --------------------------------------------------------------------------
31 // $Maintainer: Hendrik Weisser $
32 // $Authors: Hendrik Weisser $
33 // --------------------------------------------------------------------------
34 
35 #pragma once
36 
41 
42 namespace OpenMS
43 {
44  class NASequence;
45 
53  class OPENMS_DLLAPI NucleicAcidSpectrumGenerator :
54  public DefaultParamHandler
55  {
56  public:
57 
63 
66 
68  ~NucleicAcidSpectrumGenerator() override;
70 
73 
77  void getSpectrum(MSSpectrum& spectrum, const NASequence& oligo, Int min_charge, Int max_charge) const;
79 
94  void getMultipleSpectra(std::map<Int, MSSpectrum>& spectra, const NASequence& oligo, const std::set<Int>& charges, Int base_charge = 1) const;
95 
97  void updateMembers_() override;
99 
100  protected:
101 
103  void addFragmentPeaks_(MSSpectrum& spectrum, const std::vector<double>& fragment_masses, const String& ion_type, double offset, double intensity, Size start = 0) const;
104 
106  void addAMinusBPeaks_(MSSpectrum& spectrum, const std::vector<double>& fragment_masses, const NASequence& oligo, Size start = 0) const;
107 
109  MSSpectrum getUnchargedSpectrum_(const NASequence& oligo) const;
110 
112  void addChargedSpectrum_(MSSpectrum& spectrum, const MSSpectrum& uncharged_spectrum, Int charge, bool add_precursor) const;
113 
127  double a_intensity_;
128  double b_intensity_;
129  double c_intensity_;
130  double d_intensity_;
131  double w_intensity_;
132  double x_intensity_;
133  double y_intensity_;
134  double z_intensity_;
137  };
138 }
DefaultParamHandler.h
OpenMS::NucleicAcidSpectrumGenerator::aB_intensity_
double aB_intensity_
Definition: NucleicAcidSpectrumGenerator.h:135
OpenMS::ProteinIdentification::SearchParameters::digestion_enzyme
Protease digestion_enzyme
The cleavage site information in details (from ProteaseDB)
Definition: ProteinIdentification.h:236
NucleicAcidSearchEngine::AnnotatedHit::sequence
NASequence sequence
Definition: NucleicAcidSearchEngine.cpp:274
OpenMS::ProgressLogger::setProgress
void setProgress(SignedSize value) const
Sets the current progress.
MzTabFile.h
OpenMS::TOPPBase
Base class for TOPP applications.
Definition: TOPPBase.h:144
DataArrays.h
FileHandler.h
OpenMS::MzTabFile
File adapter for MzTab files.
Definition: MzTabFile.h:58
OpenMS::IdentificationDataInternal::DBSearchParam::fragment_mass_tolerance
double fragment_mass_tolerance
Definition: DBSearchParam.h:61
OpenMS::NucleicAcidSpectrumGenerator::getMultipleSpectra
void getMultipleSpectra(std::map< Int, MSSpectrum > &spectra, const NASequence &oligo, const std::set< Int > &charges, Int base_charge=1) const
Generates spectra in multiple charge states for an oligonucleotide sequence.
NucleicAcidSearchEngine::PrecursorInfo
Definition: NucleicAcidSearchEngine.cpp:255
OpenMS::Normalizer
Normalizes the peak intensities spectrum-wise.
Definition: Normalizer.h:57
OpenMS::NucleicAcidSpectrumGenerator::add_z_ions_
bool add_z_ions_
Definition: NucleicAcidSpectrumGenerator.h:121
OpenMS::NucleicAcidSpectrumGenerator::z_intensity_
double z_intensity_
Definition: NucleicAcidSpectrumGenerator.h:134
OpenMS::NucleicAcidSpectrumGenerator::d_intensity_
double d_intensity_
Definition: NucleicAcidSpectrumGenerator.h:130
IdentificationDataConverter.h
OpenMS::Math::median
static double median(IteratorType begin, IteratorType end, bool sorted=false)
Calculates the median of a range of values.
Definition: StatisticFunctions.h:151
OpenMS::IdXMLFile::store
void store(const String &filename, const std::vector< ProteinIdentification > &protein_ids, const std::vector< PeptideIdentification > &peptide_ids, const String &document_id="")
Stores the data in an idXML file.
OpenMS::MSSpectrum::findNearest
Size findNearest(CoordinateType mz) const
Binary search for the peak nearest to a specific m/z.
OpenMS::IdentificationDataInternal::MoleculeQueryMatch::peak_annotations
PeakAnnotationSteps peak_annotations
Definition: MoleculeQueryMatch.h:71
NucleicAcidSearchEngine::PrecursorInfo::scan_index
Size scan_index
Definition: NucleicAcidSearchEngine.cpp:257
OpenMS::NASequence
Representation of a nucleic acid sequence.
Definition: NASequence.h:62
OpenMS::Constants::UserParam::PRECURSOR_ERROR_PPM_USERPARAM
const std::string PRECURSOR_ERROR_PPM_USERPARAM
OpenMS::SVOutStream::modifyStrings
bool modifyStrings(bool modify)
Switch modification of strings (quoting/replacing of separators) on/off.
OpenMS::DigestionEnzymeDB< DigestionEnzymeProtein, ProteaseDB >::getInstance
static ProteaseDB * getInstance()
this member function serves as a replacement of the constructor
Definition: DigestionEnzymeDB.h:69
OpenMS::NucleicAcidSpectrumGenerator::a_intensity_
double a_intensity_
Definition: NucleicAcidSpectrumGenerator.h:127
OpenMS::FalseDiscoveryRate::applyToQueryMatches
IdentificationData::ScoreTypeRef applyToQueryMatches(IdentificationData &id_data, IdentificationData::ScoreTypeRef score_ref) const
Calculate FDR on the level of molecule-query matches (e.g. peptide-spectrum matches) for "general" id...
ModifiedNASequenceGenerator.h
OpenMS::MascotGenericFile::store
void store(const String &filename, const PeakMap &experiment, bool compact=false)
stores the experiment data in a MascotGenericFile that can be used as input for MASCOT shell executio...
OpenMS::IdentificationData::registerInputFile
InputFileRef registerInputFile(const String &file)
Register an input file.
OpenMS::File::basename
static String basename(const String &file)
Returns the basename of the file (without the path).
OpenMS::Exception::InvalidValue
Invalid value exception.
Definition: Exception.h:335
OpenMS::MSExperiment::sortSpectra
void sortSpectra(bool sort_mz=true)
Sorts the data points by retention time.
OpenMS::String::substitute
String & substitute(char from, char to)
Replaces all occurrences of the character from by the character to.
OpenMS::FASTAFile
This class serves for reading in and writing FASTA files.
Definition: FASTAFile.h:64
NucleicAcidSearchEngine::PrecursorInfo::PrecursorInfo
PrecursorInfo(Size scan_index, Int charge, Size isotope, const String &adduct)
Definition: NucleicAcidSearchEngine.cpp:262
OpenMS::IdentificationDataInternal::DBSearchParam::fragment_tolerance_ppm
bool fragment_tolerance_ppm
Definition: DBSearchParam.h:63
OpenMS::WindowMower
WindowMower augments the highest peaks in a sliding or jumping window.
Definition: WindowMower.h:54
OpenMS::MzMLFile::store
void store(const String &filename, const PeakMap &map) const
Stores a map in an MzML file.
OpenMS::Ribonucleotide
Representation of a ribonucleotide (modified or unmodified)
Definition: Ribonucleotide.h:51
OpenMS::Peak1D::setMZ
void setMZ(CoordinateType mz)
Mutable access to m/z.
Definition: Peak1D.h:121
NucleicAcidSearchEngine::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)
Definition: NucleicAcidSearchEngine.cpp:531
OpenMS::Param::setValue
void setValue(const String &key, const DataValue &value, const String &description="", const StringList &tags=StringList())
Sets a value.
OpenMS::MzTab::getNucleicAcidSectionRows
const MzTabNucleicAcidSectionRows & getNucleicAcidSectionRows() const
OpenMS::MzMLFile
File adapter for MzML files.
Definition: MzMLFile.h:55
OpenMS::String
A more convenient string class.
Definition: String.h:58
JavaInfo.h
OpenMS::ModifiedNASequenceGenerator::applyVariableModifications
static void applyVariableModifications(const std::set< ConstRibonucleotidePtr > &var_mods, const NASequence &seq, Size max_variable_mods_per_NASequence, std::vector< NASequence > &all_modified_NASequences, bool keep_original=true)
Applies variable modifications to a single NASequence. If keep_original is set the original (e....
OpenMS::MSExperiment::begin
Iterator begin()
Definition: MSExperiment.h:157
NucleicAcidSearchEngine::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)
Definition: NucleicAcidSearchEngine.cpp:375
NucleicAcidSearchEngine::AnnotatedHit::oligo_ref
IdentificationData::IdentifiedOligoRef oligo_ref
Definition: NucleicAcidSearchEngine.cpp:273
OpenMS::RNaseDigestion::digest
void digest(const NASequence &rna, std::vector< NASequence > &output, Size min_length=0, Size max_length=0) const
Performs the enzymatic digestion of a (potentially modified) RNA.
RNaseDigestion.h
OpenMS::IdentificationData::registerMoleculeQueryMatch
QueryMatchRef registerMoleculeQueryMatch(const MoleculeQueryMatch &match)
Register a molecule-query match (e.g. peptide-spectrum match)
Peak1D.h
OpenMS::EmpiricalFormula::getMonoWeight
double getMonoWeight() const
returns the mono isotopic weight of the formula (includes proton charges)
OpenMS::WindowMower::filterPeakSpectrum
void filterPeakSpectrum(PeakSpectrum &spectrum)
MzMLFile.h
OpenMS::NASequence::size
size_t size() const
OpenMS::PeptideIdentification::setRT
void setRT(double rt)
sets the RT of the MS2 spectrum where the identification occurred
OpenMS::MSExperiment
In-Memory representation of a mass spectrometry experiment.
Definition: MSExperiment.h:77
OpenMS::SpectrumSettings::getPrecursors
const std::vector< Precursor > & getPrecursors() const
returns a const reference to the precursors
OpenMS::DigestionEnzymeDB::getAllNames
void getAllNames(std::vector< String > &all_names) const
returns all the enzyme names (does NOT include synonym names)
Definition: DigestionEnzymeDB.h:122
OpenMS::IDFilter::removeDecoys
static void removeDecoys(IdentificationData &id_data)
OpenMS::PeakFileOptions::addMSLevel
void addMSLevel(int level)
adds a desired MS level for peaks to load
OpenMS::Size
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
IdXMLFile.h
OpenMS::NucleicAcidSpectrumGenerator::add_c_ions_
bool add_c_ions_
Definition: NucleicAcidSpectrumGenerator.h:116
OpenMS::MSSpectrum::getRT
double getRT() const
OpenMS::RNaseDigestion::setEnzyme
void setEnzyme(const DigestionEnzyme *enzyme) override
Sets the enzyme for the digestion.
OpenMS::RibonucleotideDB::getInstance
static RibonucleotideDB * getInstance()
replacement for constructor (singleton pattern)
NucleicAcidSearchEngine::PrecursorInfo::charge
Int charge
Definition: NucleicAcidSearchEngine.cpp:258
OpenMS::IdentificationData::registerDataProcessingSoftware
ProcessingSoftwareRef registerDataProcessingSoftware(const DataProcessingSoftware &software)
Register data processing software.
OpenMS::IdentificationDataInternal::DBSearchParam::mass_type
enum MassType mass_type
Definition: DBSearchParam.h:49
OpenMS::MzTab
Data model of MzTab files. Please see the official MzTab specification at https://code....
Definition: MzTab.h:855
OpenMS::ProteinIdentification::MONOISOTOPIC
Definition: ProteinIdentification.h:213
OpenMS::IdentificationData::getMoleculeQueryMatches
const MoleculeQueryMatches & getMoleculeQueryMatches() const
Return the registered molecule-query matches (immutable)
Definition: IdentificationData.h:372
StatisticFunctions.h
OpenMS::IdentificationDataInternal::DBSearchParam::precursor_tolerance_ppm
bool precursor_tolerance_ppm
Definition: DBSearchParam.h:62
OpenMS::ProgressLogger::startProgress
void startProgress(SignedSize begin, SignedSize end, const String &label) const
Initializes the progress display.
NucleicAcidSearchEngine::HasInvalidLength::max_size_
Size max_size_
Definition: NucleicAcidSearchEngine.cpp:328
NASequence.h
OpenMS::IdentificationDataInternal::ScoreType
Information about a score type.
Definition: ScoreType.h:45
OpenMS::IntList
std::vector< Int > IntList
Vector of signed integers.
Definition: ListUtils.h:55
OpenMS::IdentificationData::getInputFiles
const InputFiles & getInputFiles() const
Return the registered input files (immutable)
Definition: IdentificationData.h:300
OpenMS::NucleicAcidSpectrumGenerator::add_first_prefix_ion_
bool add_first_prefix_ion_
Definition: NucleicAcidSpectrumGenerator.h:123
OpenMS::IdentificationDataInternal::DataProcessingSoftware
Information about software used for data processing.
Definition: DataProcessingSoftware.h:49
OPENMS_PRECONDITION
#define OPENMS_PRECONDITION(condition, message)
Precondition macro.
Definition: openms/include/OpenMS/CONCEPT/Macros.h:136
NucleicAcidSearchEngine::getModifications_
set< ConstRibonucleotidePtr > getModifications_(const set< String > &mod_names)
Definition: NucleicAcidSearchEngine.cpp:283
SpectrumSettings.h
OpenMS::Constants::PROTON_MASS_U
const double PROTON_MASS_U
OPENMS_LOG_WARN
#define OPENMS_LOG_WARN
Macro if a warning, a piece of information which should be read by the user, should be logged.
Definition: LogStream.h:460
OpenMS::ProgressLogger::endProgress
void endProgress() const
Ends the progress display.
OpenMS::IdentificationData::registerIdentifiedOligo
IdentifiedOligoRef registerIdentifiedOligo(const IdentifiedOligo &oligo)
Register an identified RNA oligonucleotide.
OpenMS::IdentificationDataInternal::DBSearchParam::database
String database
Definition: DBSearchParam.h:51
OpenMS::EnzymaticDigestion::setMissedCleavages
void setMissedCleavages(Size missed_cleavages)
Sets the number of missed cleavages for the digestion (default is 0). This setting is ignored when lo...
OpenMS::MzTab::getOligonucleotideSectionRows
const MzTabOligonucleotideSectionRows & getOligonucleotideSectionRows() const
OpenMS::Software::setVersion
void setVersion(const String &version)
Sets the software version.
ListUtils.h
OpenMS::MSExperiment::size
Size size() const
Definition: MSExperiment.h:127
OpenMS::NLargest
NLargest removes all but the n largest peaks.
Definition: NLargest.h:54
OpenMS::DefaultParamHandler
A base class for all classes handling default parameters.
Definition: DefaultParamHandler.h:91
OpenMS::IdentificationData::registerDataProcessingStep
ProcessingStepRef registerDataProcessingStep(const DataProcessingStep &step)
Register a data processing step.
OpenMS::PeptideIdentification::getHits
const std::vector< PeptideHit > & getHits() const
returns the peptide hits as const
OpenMS::ProteinIdentification::SearchParameters::fragment_mass_tolerance_ppm
bool fragment_mass_tolerance_ppm
Mass tolerance unit of fragment ions (true: ppm, false: Dalton)
Definition: ProteinIdentification.h:233
OpenMS::DateTime::now
static DateTime now()
Returns the current date and time.
OpenMS::NucleicAcidSpectrumGenerator::add_x_ions_
bool add_x_ions_
Definition: NucleicAcidSpectrumGenerator.h:119
OpenMS::IdentificationDataInternal::DBSearchParam
Parameters specific to a database search step.
Definition: DBSearchParam.h:46
NucleicAcidSearchEngine::AnnotatedHit::precursor_error_ppm
double precursor_error_ppm
Definition: NucleicAcidSearchEngine.cpp:275
OpenMS::ListUtils::concatenate
static String concatenate(const std::vector< T > &container, const String &glue="")
Concatenates all elements of the container and puts the glue string between elements.
Definition: ListUtils.h:193
WindowMower.h
OpenMS::Precursor
Precursor meta information.
Definition: Precursor.h:57
OpenMS::DigestionEnzymeDB::getEnzyme
const DigestionEnzymeType * getEnzyme(const String &name) const
Definition: DigestionEnzymeDB.h:98
NucleicAcidSearchEngine::calculateAndFilterFDR_
void calculateAndFilterFDR_(IdentificationData &id_data, bool only_top_hits)
Definition: NucleicAcidSearchEngine.cpp:841
OpenMS
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:46
NucleicAcidSearchEngine::HasInvalidLength::HasInvalidLength
HasInvalidLength(Size min_size, Size max_size)
Definition: NucleicAcidSearchEngine.cpp:330
PeptideHit.h
RNaseDB.h
NucleicAcidSearchEngine::postProcessHits_
void postProcessHits_(const PeakMap &exp, vector< HitsByScore > &annotated_hits, IdentificationData &id_data, bool negative_mode)
Definition: NucleicAcidSearchEngine.cpp:738
NucleicAcidSearchEngine::PrecursorInfo::adduct
String adduct
Definition: NucleicAcidSearchEngine.cpp:260
OpenMS::Normalizer::filterPeakMap
void filterPeakMap(PeakMap &exp) const
OpenMS::ProteinIdentification::SearchParameters::variable_modifications
std::vector< String > variable_modifications
Allowed variable modifications.
Definition: ProteinIdentification.h:230
NucleicAcidSearchEngine::calculatePrecursorMass_
double calculatePrecursorMass_(double mz, Int charge, Int isotope, double adduct_mass, bool negative_mode)
Definition: NucleicAcidSearchEngine.cpp:656
OpenMS::IdentificationDataInternal::DBSearchParam::digestion_enzyme
const DigestionEnzyme * digestion_enzyme
Definition: DBSearchParam.h:66
OpenMS::ProteinIdentification::SearchParameters::mass_type
PeakMassType mass_type
Mass type of the peaks.
Definition: ProteinIdentification.h:228
OpenMS::ProgressLogger
Base class for all classes that want to report their progress.
Definition: ProgressLogger.h:54
ProteaseDB.h
OpenMS::NucleicAcidSpectrumGenerator::add_metainfo_
bool add_metainfo_
Definition: NucleicAcidSpectrumGenerator.h:124
OpenMS::MetaInfoInterface::setMetaValue
void setMetaValue(const String &name, const DataValue &value)
Sets the DataValue corresponding to a name.
OpenMS::IDFilter::filterQueryMatchesByScore
static void filterQueryMatchesByScore(IdentificationData &id_data, IdentificationData::ScoreTypeRef score_ref, double cutoff)
OpenMS::IdentificationData::registerScoreType
ScoreTypeRef registerScoreType(const ScoreType &score)
Register a score type.
OpenMS::MzMLFile::load
void load(const String &filename, PeakMap &map)
Loads a map from a MzML file. Spectra and chromatograms are sorted by default (this can be disabled u...
OpenMS::NucleicAcidSpectrumGenerator::add_b_ions_
bool add_b_ions_
Definition: NucleicAcidSpectrumGenerator.h:115
FASTAFile.h
OpenMS::SVOutStream
Stream class for writing to comma/tab/...-separated values files.
Definition: SVOutStream.h:54
int
NucleicAcidSearchEngine::fragment_ion_codes_
vector< String > fragment_ion_codes_
Definition: NucleicAcidSearchEngine.cpp:154
NucleicAcidSearchEngine::generateLFQInput_
void generateLFQInput_(IdentificationData &id_data, const String &out_file)
Definition: NucleicAcidSearchEngine.cpp:869
OpenMS::ProteinIdentification::SearchParameters::db
String db
The used database.
Definition: ProteinIdentification.h:224
OpenMS::IdentificationData::getDataQueries
const DataQueries & getDataQueries() const
Return the registered data queries (immutable)
Definition: IdentificationData.h:336
OpenMS::IdentificationDataInternal::IteratorWrapper
Wrapper that adds operator< to iterators, so they can be used as (part of) keys in maps/sets or multi...
Definition: MetaData.h:43
OpenMS::IdentificationDataInternal::DataProcessingSoftware::assigned_scores
std::vector< ScoreTypeRef > assigned_scores
Definition: DataProcessingSoftware.h:57
ProteinIdentification.h
OpenMS::MzTab::getOSMSectionRows
const MzTabOSMSectionRows & getOSMSectionRows() const
OpenMS::IdentificationDataInternal::DataQuery
Search query, e.g. spectrum or feature.
Definition: DataQuery.h:47
Param.h
NucleicAcidSearchEngine::ambiguous_mods_
map< String, String > ambiguous_mods_
Definition: NucleicAcidSearchEngine.cpp:155
OpenMS::Peak1D::getMZ
CoordinateType getMZ() const
Non-mutable access to m/z.
Definition: Peak1D.h:115
OpenMS::NucleicAcidSpectrumGenerator::add_precursor_peaks_
bool add_precursor_peaks_
Definition: NucleicAcidSpectrumGenerator.h:125
OpenMS::Ribonucleotide::isAmbiguous
bool isAmbiguous() const
Return whether this is an "ambiguous" modification (representing isobaric modifications on the base/r...
OPENMS_LOG_DEBUG
#define OPENMS_LOG_DEBUG
Macro for general debugging information.
Definition: LogStream.h:470
OpenMS::PeptideIdentification::setHigherScoreBetter
void setHigherScoreBetter(bool value)
sets the peptide score orientation
OpenMS::MzTabFile::store
void store(const String &filename, const MzTab &mz_tab) const
OpenMS::IdentificationData::setCurrentProcessingStep
void setCurrentProcessingStep(ProcessingStepRef step_ref)
Set a data processing step that will apply to all subsequent "register..." calls.
RibonucleotideDB.h
OpenMS::IdentificationDataInternal::MoleculeQueryMatch
Meta data for a search hit (e.g. peptide-spectrum match).
Definition: MoleculeQueryMatch.h:61
OpenMS::IdentificationData::registerDBSearchParam
SearchParamRef registerDBSearchParam(const DBSearchParam &param)
Register database search parameters.
OpenMS::IdentificationDataInternal::DBSearchParam::variable_mods
std::set< String > variable_mods
Definition: DBSearchParam.h:58
OpenMS::SpectrumSettings::setPrecursors
void setPrecursors(const std::vector< Precursor > &precursors)
sets the precursors
OpenMS::String::split
bool split(const char splitter, std::vector< String > &substrings, bool quote_protect=false) const
Splits a string into substrings using splitter as delimiter.
NucleicAcidSearchEngine::AnnotatedHit
Definition: NucleicAcidSearchEngine.cpp:271
OpenMS::IdentificationDataConverter::exportIDs
static void exportIDs(const IdentificationData &id_data, std::vector< ProteinIdentification > &proteins, std::vector< PeptideIdentification > &peptides, bool export_oligonucleotides=false)
Export to legacy peptide/protein identifications.
OpenMS::MSSpectrum::clear
void clear(bool clear_meta_data)
Clears all data and meta data.
OpenMS::DefaultParamHandler::setParameters
void setParameters(const Param &param)
Sets the parameters.
NucleicAcidSearchEngine::HasInvalidLength::min_size_
Size min_size_
Definition: NucleicAcidSearchEngine.cpp:327
OpenMS::DefaultParamHandler::getDefaults
const Param & getDefaults() const
Non-mutable access to the default parameters.
OpenMS::String::toQString
QString toQString() const
Conversion to Qt QString.
OpenMS::NucleicAcidSpectrumGenerator::add_a_ions_
bool add_a_ions_
Definition: NucleicAcidSpectrumGenerator.h:114
NucleicAcidSearchEngine::registerIDMetaData_
void registerIDMetaData_(IdentificationData &id_data, const String &in_mzml, const vector< String > &primary_files, const IdentificationData::DBSearchParam &search_param)
Definition: NucleicAcidSearchEngine.cpp:807
OpenMS::File::path
static String path(const String &file)
Returns the path of the file (without the file name).
Normalizer.h
MascotGenericFile.h
OpenMS::PeptideHit::setCharge
void setCharge(Int charge)
sets the charge of the peptide
CsvFile.h
OpenMS::DefaultParamHandler::getParameters
const Param & getParameters() const
Non-mutable access to the parameters.
OpenMS::IdentificationDataInternal::DBSearchParam::max_length
Size max_length
Definition: DBSearchParam.h:69
OpenMS::MascotGenericFile
Read/write Mascot generic files (MGF).
Definition: MascotGenericFile.h:61
seqan::find
bool find(TFinder &finder, const Pattern< TNeedle, FuzzyAC > &me, PatternAuxData< TNeedle > &dh)
Definition: AhoCorasickAmbiguous.h:884
OpenMS::IdentificationDataInternal::DBSearchParam::charges
std::set< Int > charges
Definition: DBSearchParam.h:55
OpenMS::ProteinIdentification::SearchParameters::fragment_mass_tolerance
double fragment_mass_tolerance
Mass tolerance of fragment ions (Dalton or ppm)
Definition: ProteinIdentification.h:232
OpenMS::NucleicAcidSpectrumGenerator::add_aB_ions_
bool add_aB_ions_
Definition: NucleicAcidSpectrumGenerator.h:122
OpenMS::Peak1D
A 1-dimensional raw data point or peak.
Definition: Peak1D.h:54
OpenMS::StringList
std::vector< String > StringList
Vector of String.
Definition: ListUtils.h:70
OpenMS::MSSpectrum::sortByPosition
void sortByPosition()
Lexicographically sorts the peaks by their position.
OpenMS::IdentificationDataInternal::DBSearchParam::min_length
Size min_length
Definition: DBSearchParam.h:68
NucleicAcidSpectrumGenerator.h
OpenMS::NucleicAcidSpectrumGenerator::b_intensity_
double b_intensity_
Definition: NucleicAcidSpectrumGenerator.h:128
OpenMS::IdentificationDataInternal::IdentifiedSequence::sequence
SeqType sequence
Definition: IdentifiedSequence.h:54
OpenMS::NucleicAcidSpectrumGenerator::add_w_ions_
bool add_w_ions_
Definition: NucleicAcidSpectrumGenerator.h:118
OpenMS::PeptideHit::setSequence
void setSequence(const AASequence &sequence)
sets the peptide sequence
OpenMS::ProteinIdentification::SearchParameters::fixed_modifications
std::vector< String > fixed_modifications
Used fixed modifications.
Definition: ProteinIdentification.h:229
OpenMS::IdentificationDataInternal::RNA
Definition: MetaData.h:67
OpenMS::IdentificationData::getScoreTypes
const ScoreTypes & getScoreTypes() const
Return the registered score types (immutable)
Definition: IdentificationData.h:330
NucleicAcidSearchEngine::AnnotatedHit::annotations
vector< PeptideHit::PeakAnnotation > annotations
Definition: NucleicAcidSearchEngine.cpp:276
SVOutStream.h
OpenMS::CsvFile
This class handles csv files. Currently only loading is implemented.
Definition: CsvFile.h:49
NLargest.h
OpenMS::SpectrumSettings::getNativeID
const String & getNativeID() const
returns the native identifier for the spectrum, used by the acquisition software.
OpenMS::FalseDiscoveryRate
Calculates false discovery rates (FDR) from identifications.
Definition: FalseDiscoveryRate.h:77
main
int main(int argc, const char **argv)
Definition: INIFileEditor.cpp:73
OpenMS::NucleicAcidSpectrumGenerator::x_intensity_
double x_intensity_
Definition: NucleicAcidSpectrumGenerator.h:132
main
int main(int argc, const char **argv)
Definition: NucleicAcidSearchEngine.cpp:1378
MSExperiment.h
OpenMS::ProteinIdentification::SearchParameters::precursor_mass_tolerance
double precursor_mass_tolerance
Mass tolerance of precursor ions (Dalton or ppm)
Definition: ProteinIdentification.h:234
OpenMS::EmpiricalFormula::getAverageWeight
double getAverageWeight() const
returns the average weight of the formula (includes proton charges)
OpenMS::IdentificationDataInternal::DBSearchParam::missed_cleavages
Size missed_cleavages
Definition: DBSearchParam.h:67
OpenMS::SignedSize
ptrdiff_t SignedSize
Signed Size type e.g. used as pointer difference.
Definition: Types.h:134
OpenMS::IdentificationData
Representation of spectrum identification results and associated data.
Definition: IdentificationData.h:89
OPENMS_LOG_ERROR
#define OPENMS_LOG_ERROR
Macro to be used if non-fatal error are reported (processing continues)
Definition: LogStream.h:455
OpenMS::NucleicAcidSpectrumGenerator::add_d_ions_
bool add_d_ions_
Definition: NucleicAcidSpectrumGenerator.h:117
OpenMS::NucleicAcidSpectrumGenerator::c_intensity_
double c_intensity_
Definition: NucleicAcidSpectrumGenerator.h:129
OpenMS::IdentificationDataInternal::DBSearchParam::precursor_mass_tolerance
double precursor_mass_tolerance
Definition: DBSearchParam.h:60
OpenMS::PeptideIdentification
Represents the peptide hits for a spectrum.
Definition: PeptideIdentification.h:62
OpenMS::IdentificationData::cleanup
void cleanup(bool require_query_match=true, bool require_identified_sequence=true, bool require_parent_match=true, bool require_parent_group=false, bool require_match_group=false)
Clean up the data structure after filtering parts of it.
OpenMS::String::substr
String substr(size_t pos=0, size_t n=npos) const
Wrapper for the STL substr() method. Returns a String object with its contents initialized to a subst...
OpenMS::FASTAFile::load
static void load(const String &filename, std::vector< FASTAEntry > &data)
loads a FASTA file given by 'filename' and stores the information in 'data'
OpenMS::IdentificationData::getCurrentProcessingStep
ProcessingStepRef getCurrentProcessingStep()
NucleicAcidSearchEngine::parseAdduct_
EmpiricalFormula parseAdduct_(const String &adduct)
Definition: NucleicAcidSearchEngine.cpp:338
OpenMS::ThresholdMower::filterPeakMap
void filterPeakMap(PeakMap &exp)
OpenMS::MSExperiment::end
Iterator end()
Definition: MSExperiment.h:167
NucleicAcidSearchEngine::AnnotatedHit::precursor_ref
const PrecursorInfo * precursor_ref
Definition: NucleicAcidSearchEngine.cpp:277
OpenMS::IdentificationDataInternal::IdentifiedSequence
Identified sequence (peptide or oligonucleotide)
Definition: IdentifiedSequence.h:52
OpenMS::EmpiricalFormula
Representation of an empirical formula.
Definition: EmpiricalFormula.h:82
ElementDB.h
OpenMS::PeakFileOptions
Options for loading files containing peak data.
Definition: PeakFileOptions.h:47
float
OpenMS::MSExperiment::getPrimaryMSRunPath
void getPrimaryMSRunPath(StringList &toFill) const
get the file path to the first MS run
OpenMS::IdentificationDataInternal::MONOISOTOPIC
Definition: MetaData.h:74
NucleicAcidSearchEngine::HasInvalidLength::operator()
bool operator()(const NASequence &s)
Definition: NucleicAcidSearchEngine.cpp:334
OpenMS::ThresholdMower
ThresholdMower removes all peaks below a threshold.
Definition: ThresholdMower.h:51
OpenMS::IdentificationDataConverter::exportMzTab
static MzTab exportMzTab(const IdentificationData &id_data)
Export to mzTab format.
OpenMS::NASequence::empty
bool empty() const
OpenMS::TOPPBase::ExitCodes
ExitCodes
Exit codes.
Definition: TOPPBase.h:149
OpenMS::MSSpectrum::setName
void setName(const String &name)
Sets the name.
OpenMS::IdentificationDataInternal::ScoredProcessingResult::addScore
void addScore(ScoreTypeRef score_type, double score, const boost::optional< ProcessingStepRef > &processing_step_opt=boost::none)
Add a score (possibly connected to a processing step)
Definition: ScoredProcessingResult.h:97
String.h
OpenMS::NASequence::toString
std::string toString() const
OpenMS::IdentificationDataInternal::AVERAGE
Definition: MetaData.h:75
NucleicAcidSearchEngine::main_
ExitCodes main_(int, const char **) override
The actual "main" method. main_() is invoked by main().
Definition: NucleicAcidSearchEngine.cpp:922
OpenMS::PeakFileOptions::clearMSLevels
void clearMSLevels()
clears the MS levels
OpenMS::ProteinIdentification::SearchParameters::precursor_mass_tolerance_ppm
bool precursor_mass_tolerance_ppm
Mass tolerance unit of precursor ions (true: ppm, false: Dalton)
Definition: ProteinIdentification.h:235
OpenMS::Param
Management and storage of parameters / INI files.
Definition: Param.h:73
OpenMS::String::remove
String & remove(char what)
Remove all occurrences of the character what.
IdentificationData.h
OpenMS::NucleicAcidSpectrumGenerator
Generates theoretical spectra for nucleic acid sequences.
Definition: NucleicAcidSpectrumGenerator.h:53
OpenMS::IdentificationData::getIdentifiedOligos
const IdentifiedOligos & getIdentifiedOligos() const
Return the registered identified oligonucleotides (immutable)
Definition: IdentificationData.h:366
OpenMS::IdentificationDataConverter::importSequences
static void importSequences(IdentificationData &id_data, const std::vector< FASTAFile::FASTAEntry > &fasta, IdentificationData::MoleculeType type=IdentificationData::MoleculeType::PROTEIN, const String &decoy_pattern="")
Import FASTA sequences as parent molecules.
OpenMS::NucleicAcidSpectrumGenerator::add_y_ions_
bool add_y_ions_
Definition: NucleicAcidSpectrumGenerator.h:120
IDFilter.h
NucleicAcidSearchEngine::PrecursorInfo::isotope
Size isotope
Definition: NucleicAcidSearchEngine.cpp:259
OpenMS::NucleicAcidSpectrumGenerator::add_all_precursor_charges_
bool add_all_precursor_charges_
Definition: NucleicAcidSpectrumGenerator.h:126
OpenMS::MSExperiment::ConstIterator
std::vector< SpectrumType >::const_iterator ConstIterator
Non-mutable iterator.
Definition: MSExperiment.h:113
OpenMS::AASequence::fromString
static AASequence fromString(const String &s, bool permissive=true)
create AASequence object by parsing an OpenMS string
OpenMS::IdentificationDataInternal::DataProcessingStep
Data processing step that is applied to the data (e.g. database search, PEP calculation,...
Definition: DataProcessingStep.h:46
OpenMS::Precursor::setCharge
void setCharge(Int charge)
Mutable access to the charge.
OpenMS::IdentificationData::calculateCoverages
void calculateCoverages(bool check_molecule_length=false)
Calculate sequence coverages of parent molecules.
OPENMS_LOG_INFO
#define OPENMS_LOG_INFO
Macro if a information, e.g. a status should be reported.
Definition: LogStream.h:465
OpenMS::PeakFileOptions::setMSLevels
void setMSLevels(const std::vector< Int > &levels)
sets the desired MS levels for peaks to load
OpenMS::NucleicAcidSpectrumGenerator::y_intensity_
double y_intensity_
Definition: NucleicAcidSpectrumGenerator.h:133
NucleicAcidSearchEngine::resolveAmbiguousMods_
void resolveAmbiguousMods_(HitsByScore &hits)
Definition: NucleicAcidSearchEngine.cpp:677
SpectrumAlignment.h
OpenMS::MetaboliteSpectralMatching::computeHyperScore
static double computeHyperScore(double fragment_mass_error, bool fragment_mass_tolerance_unit_ppm, const MSSpectrum &exp_spectrum, const MSSpectrum &db_spectrum, double mz_lower_bound=0.0)
hyperscore computation
OpenMS::Exception::ElementNotFound
Element could not be found exception.
Definition: Exception.h:662
OpenMS::Constants::C13C12_MASSDIFF_U
const double C13C12_MASSDIFF_U
OpenMS::RNaseDigestion
Class for the enzymatic digestion of RNAs.
Definition: RNaseDigestion.h:52
PeptideIdentification.h
OpenMS::MSExperiment::getNrSpectra
Size getNrSpectra() const
get the total number of spectra available
OpenMS::MSSpectrum
The representation of a 1D spectrum.
Definition: MSSpectrum.h:67
OpenMS::ProteinIdentification::SearchParameters
Search parameters of the DB search.
Definition: ProteinIdentification.h:221
OpenMS::NucleicAcidSpectrumGenerator::w_intensity_
double w_intensity_
Definition: NucleicAcidSpectrumGenerator.h:131
OpenMS::PeptideIdentification::setMZ
void setMZ(double mz)
sets the MZ of the MS2 spectrum
FalseDiscoveryRate.h
OpenMS::IdentificationDataInternal::DBSearchParam::molecule_type
enum MoleculeType molecule_type
Definition: DBSearchParam.h:48
OpenMS::TOPPBase::main
ExitCodes main(int argc, const char **argv)
Main routine of all TOPP applications.
StandardTypes.h
MetaboliteSpectralMatching.h
OpenMS::NucleicAcidSpectrumGenerator::precursor_intensity_
double precursor_intensity_
Definition: NucleicAcidSpectrumGenerator.h:136
OpenMS::NLargest::filterPeakSpectrum
void filterPeakSpectrum(PeakSpectrum &spectrum)
NucleicAcidSearchEngine::HitsByScore
multimap< double, AnnotatedHit, greater< double > > HitsByScore
Definition: NucleicAcidSearchEngine.cpp:280
File.h
OpenMS::IdentificationData::findScoreType
std::pair< ScoreTypeRef, bool > findScoreType(const String &score_name) const
Look up a score type by name.
OpenMS::MzMLFile::getOptions
PeakFileOptions & getOptions()
Mutable access to the options for loading/storing.
OpenMS::ProgressLogger::setLogType
void setLogType(LogType type) const
Sets the progress log that should be used. The default type is NONE!
TOPPBase.h
NucleicAcidSearchEngine::HasInvalidLength
Definition: NucleicAcidSearchEngine.cpp:325
OpenMS::PeptideIdentification::setScoreType
void setScoreType(const String &type)
sets the peptide score type
MSSpectrum.h
NucleicAcidSearchEngine::registerOptionsAndFlags_
void registerOptionsAndFlags_()
Sets the valid command line options (with argument) and flags (without argument).
Definition: NucleicAcidSearchEngine.cpp:159
OpenMS::IdXMLFile
Used to load and store idXML files.
Definition: IdXMLFile.h:63
ThresholdMower.h
OpenMS::IdentificationData::registerDataQuery
DataQueryRef registerDataQuery(const DataQuery &query)
Register a data query (e.g. MS2 spectrum or feature)
NucleicAcidSearchEngine::resolve_ambiguous_mods_
bool resolve_ambiguous_mods_
Definition: NucleicAcidSearchEngine.cpp:156
NucleicAcidSearchEngine
Definition: NucleicAcidSearchEngine.cpp:140
OpenMS::PeptideHit::setScore
void setScore(double score)
sets the PSM score
NucleicAcidSearchEngine::NucleicAcidSearchEngine
NucleicAcidSearchEngine()
Definition: NucleicAcidSearchEngine.cpp:146
OpenMS::PeptideHit
Representation of a peptide hit.
Definition: PeptideHit.h:54