|
OpenMS
2.5.0
|
Go to the documentation of this file.
110 std::vector<MultiplexIsotopicPeakPattern> generatePeakPatterns_(
int charge_min,
int charge_max,
int peaks_per_peptide_max,
const std::vector<MultiplexDeltaMasses>& mass_pattern_list);
121 void correctPeptideIntensities_(
const MultiplexIsotopicPeakPattern& pattern, std::map<size_t, SplinePackage>& spline_chromatograms,
const std::vector<double>& rt_peptide, std::vector<double>& intensity_peptide);
131 std::vector<double> determinePeptideIntensitiesCentroided_(
const MultiplexIsotopicPeakPattern& pattern,
const std::multimap<size_t, MultiplexSatelliteCentroided >& satellites);
141 std::vector<double> determinePeptideIntensitiesProfile_(
const MultiplexIsotopicPeakPattern& pattern,
const std::multimap<size_t, MultiplexSatelliteProfile >& satellites);
150 void generateMapsCentroided_(
const std::vector<MultiplexIsotopicPeakPattern>& patterns,
const std::vector<MultiplexFilteredMSExperiment>& filter_results, std::vector<std::map<int, GridBasedCluster> >& cluster_results);
159 void generateMapsProfile_(
const std::vector<MultiplexIsotopicPeakPattern>& patterns,
const std::vector<MultiplexFilteredMSExperiment>& filter_results,
const std::vector<std::map<int, GridBasedCluster> >& cluster_results);
void addMSLevel(int level)
adds a desired MS level for peaks to load
static void return_chromatogram(const std::vector< OpenSwath::ChromatogramPtr > &chromatograms, const std::vector< ChromatogramExtractor::ExtractionCoordinates > &coordinates, TransitionExpT &transition_exp_used, SpectrumSettings settings, std::vector< OpenMS::MSChromatogram > &output_chromatograms, bool ms1, double im_extraction_width=0.0)
This converts the ChromatogramPtr to MSChromatogram and adds meta-information.
Definition: ChromatogramExtractor.h:284
double second
Definition: TransformationModel.h:59
Management and storage of parameters / INI files.
Definition: Param.h:73
void store(const String &filename, const ConsensusMap &consensus_map)
Stores a consensus map to file.
void setValue(const String &key, const DataValue &value, const String &description="", const StringList &tags=StringList())
Sets a value.
void setRT(double rt)
sets the RT of the MS2 spectrum where the identification occurred
void store(const String &filename, const TargetedExperiment &id) const
Stores a map in a TraML file.
This class provides Input/Output functionality for feature maps.
Definition: FeatureXMLFile.h:68
void updateRanges() override
Updates minimum and maximum position/intensity.
void trimLeft(double cutoff)
Trims the left side of the isotope distribution to isotopes with a significant contribution.
Representation of an empirical formula.
Definition: EmpiricalFormula.h:82
const Param & getParameters() const
Non-mutable access to the parameters.
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
RTUnit retention_time_unit
Definition: TargetedExperimentHelper.h:196
void remove(std::ostream &s)
A method or algorithm argument contains illegal values.
Definition: Exception.h:648
static const String getProductName()
void setChargeState(int charge)
Set the peptide or compound charge state.
Definition: TargetedExperimentHelper.h:241
Iterator end()
Definition: IsotopeDistribution.h:200
void run(const PeakMap &, std::vector< MassTrace > &, const Size max_traces=0)
Main method of MassTraceDetection. Extracts mass traces of a MSExperiment and gathers them into a vec...
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
unsigned charge_min_
Definition: FeatureFinderMultiplexAlgorithm.h:83
const std::vector< ConvexHull2D > & getConvexHulls() const
Non-mutable access to the convex hulls.
void insert(std::ostream &s)
#define OPENMS_LOG_INFO
Macro if a information, e.g. a status should be reported.
Definition: LogStream.h:465
void extractChromatograms(const ExperimentT &input, ExperimentT &output, OpenMS::TargetedExperiment &transition_exp, double mz_extraction_window, bool ppm, TransformationDescription trafo, double rt_extraction_window, const String &filter)
Extract chromatograms defined by the TargetedExperiment from the input map and write them to the outp...
Definition: ChromatogramExtractor.h:96
const std::vector< MSChromatogram > & getChromatograms() const
returns the chromatogram list
Helper struct for a collection of mass traces used in FeatureFinderAlgorithmPicked.
Definition: FeatureFinderAlgorithmPickedHelperStructs.h:109
void addCompound(const Compound &rhs)
const PointArrayType & getHullPoints() const
accessor for the outer points
Size size() const
Definition: MSExperiment.h:127
bool metaValueExists(const String &name) const
Returns whether an entry with the given name exists.
void store(const String &filename, const FeatureMap &feature_map)
stores the map feature_map in file with name filename.
unsigned isotopes_per_peptide_max_
Definition: FeatureFinderMultiplexAlgorithm.h:87
CoordinateType getMZ() const
Returns the m/z coordinate (index 1)
Definition: Peak2D.h:196
const DataValue & getMetaValue(const String &name, const DataValue &default_value=DataValue::EMPTY) const
Returns the value corresponding to a string, or a default value (default: DataValue::EMPTY) if not fo...
ConsensusMap & getConsensusMap()
Base::iterator Iterator
Definition: FeatureMap.h:139
String id
Definition: TargetedExperimentHelper.h:317
#define OPENMS_LOG_ERROR
Macro to be used if non-fatal error are reported (processing continues)
Definition: LogStream.h:455
Generic description of a coordinate transformation.
Definition: TransformationDescription.h:61
void detectPeaks(MassTrace &mt, std::vector< MassTrace > &single_mtraces)
Extracts chromatographic peaks from a single MassTrace and stores the resulting split traces in a vec...
Represents a compound (small molecule)
Definition: TargetedExperimentHelper.h:333
FeatureMap & getFeatureMap()
get methods
void reset()
Resets all internal values.
A container for features.
Definition: FeatureMap.h:95
ContainerType::const_iterator ConstIterator
Definition: IsotopeDistribution.h:76
void clear(bool clear_meta_data)
Clears all data and meta data.
Helper struct for mass traces used in FeatureFinderAlgorithmPicked.
Definition: FeatureFinderAlgorithmPickedHelperStructs.h:79
Definition: FeatureFinderMultiplexAlgorithm.h:56
MSExperiment & getBlacklist()
void setSectionDescription(const String &key, const String &description)
Sets a description for an existing section.
const std::vector< Compound > & getCompounds() const
void setIdentifier(const String &id)
sets the identifier
Size setUniqueId()
Assigns a new, valid unique id. Always returns 1.
Definition: UniqueIdInterface.h:146
String note
Definition: TransformationModel.h:60
This class stores a retention time structure that is used in TargetedExperiment (representing a TraML...
Definition: TargetedExperimentHelper.h:127
Iterator begin()
Definition: MSExperiment.h:157
const double C13C12_MASSDIFF_U
CoordinateType getRT() const
Returns the RT coordinate (index 0)
Definition: Peak2D.h:208
void setProductMZ(double mz)
bool centroided_
Definition: FeatureFinderMultiplexAlgorithm.h:77
void insert(const String &prefix, const Param ¶m)
Base class for TOPP applications.
Definition: TOPPBase.h:144
Data filtering or extraction.
Definition: DataProcessing.h:71
void setPrecursorMZ(double mz)
sets the precursor mz (Q1 value)
The MRMFeatureFinder finds and scores peaks of transitions that co-elute.
Definition: MRMFeatureFinderScoring.h:93
std::vector< String > StringList
Vector of String.
Definition: ListUtils.h:70
This class provides Input functionality for ConsensusMaps and Output functionality for alignments and...
Definition: ConsensusXMLFile.h:61
void setMSLevels(const std::vector< Int > &levels)
sets the desired MS levels for peaks to load
void addTransition(const ReactionMonitoringTransition &transition)
adds a transition to the list
An LC-MS feature.
Definition: Feature.h:70
File adapter for HUPO PSI TraML files.
Definition: TraMLFile.h:63
Options for loading files containing peak data.
Definition: PeakFileOptions.h:47
const DataValue & getValue(const String &key) const
Returns a value of a parameter.
int getChargeState() const
Return the peptide or compound charge state.
Definition: TargetedExperimentHelper.h:254
Base class for all classes that want to report their progress.
Definition: ProgressLogger.h:54
Not all required information provided.
Definition: Exception.h:195
Quantitation.
Definition: DataProcessing.h:72
Method for the assembly of mass traces belonging to the same isotope pattern, i.e....
Definition: FeatureFindingMetabo.h:177
void setMaxIsotope(const Size &max_isotope)
sets the maximal isotope with max_isotope
void setMetaValue(const String &name, const DataValue &value)
Sets the DataValue corresponding to a name.
void run(MSExperiment &exp, bool progress)
main method for feature detection
Iterator end()
Definition: MSExperiment.h:167
void fitElutionModels(FeatureMap &features)
Fit models of elution profiles to all features (and validate them)
void renormalize()
Re-normalizes the sum of the probabilities of all the isotopes to 1.
void setCompoundRef(const String &compound_ref)
Size ensureUniqueId()
Assigns a valid unique id, but only if the present one is invalid. Returns 1 if the unique id was cha...
Definition: UniqueIdInterface.h:154
const Compound & getCompoundByRef(const String &ref) const
#define OPENMS_PRECONDITION(condition, message)
Precondition macro.
Definition: openms/include/OpenMS/CONCEPT/Macros.h:136
unsigned charge_max_
Definition: FeatureFinderMultiplexAlgorithm.h:84
UInt64 getUniqueId() const
Non-mutable access to unique id - returns the unique id.
Definition: UniqueIdInterface.h:105
void setPrimaryMSRunPath(const StringList &s)
set the file path to the primary MS run (usually the mzML file obtained after data conversion from ra...
void run(const String &algorithm_name, PeakMap &input_map, FeatureMap &features, const Param ¶m, const FeatureMap &seeds)
Executes the FeatureFinder using the given algorithm.
void setLogType(LogType type) const
Sets the progress log that should be used. The default type is NONE!
TransformationModel::DataPoints DataPoints
Vector of coordinate pairs.
Definition: TransformationDescription.h:103
const std::vector< MSSpectrum > & getSpectra() const
returns the spectrum list
bool progress_
Definition: FeatureFinderMultiplexAlgorithm.h:81
const std::vector< Feature > & getSubordinates() const
immutable access to subordinate features
Extracts chromatographic peaks from a mass trace.
Definition: ElutionPeakDetection.h:76
ProgressLogger prog_log_
Definition: FeatureFinderMultiplexAlgorithm.h:79
const ColumnHeaders & getColumnHeaders() const
Non-mutable access to the file descriptions.
A container for consensus elements.
Definition: ConsensusMap.h:79
const double PROTON_MASS_U
bool addPoint(const PointType &point)
void setParameters(const Param ¶m)
Sets the parameters.
MSExperiment exp_profile_
Definition: FeatureFinderMultiplexAlgorithm.h:74
void setValidStrings(const String &key, const std::vector< String > &strings)
Sets the valid strings for the parameter key.
SpectrumType
Spectrum peak type.
Definition: SpectrumSettings.h:70
#define OPENMS_LOG_DEBUG
Macro for general debugging information.
Definition: LogStream.h:470
The main feature finder class.
Definition: FeatureFinder.h:56
unsigned isotopes_per_peptide_min_
Definition: FeatureFinderMultiplexAlgorithm.h:86
void set(const ContainerType &distribution)
overwrites the container which holds the distribution using distribution
void run(std::vector< MassTrace > &input_mtraces, FeatureMap &output_featmap, std::vector< std::vector< OpenMS::MSChromatogram > > &output_chromatograms)
main method of FeatureFindingMetabo
void pickExperiment(PeakMap &chromatograms, FeatureMap &output, TargetedExperiment &transition_exp, TransformationDescription trafo, PeakMap &swath_map)
Picker and prepare functions.
void setRT(double rt)
Definition: TargetedExperimentHelper.h:184
In-Memory representation of a mass spectrometry experiment.
Definition: MSExperiment.h:77
Logger::LogStream OpenMS_Log_info
Global static instance of a LogStream to capture messages classified as information....
void remove(const String &key)
Remove the entry key or a section key (when suffix is ':')
Param copy(const String &prefix, bool remove_prefix=false) const
Returns a new Param object containing all entries that start with prefix.
No progress logging.
Definition: ProgressLogger.h:74
void store(const String &filename, const PeakMap &map) const
Stores a map in an MzML file.
MSExperiment exp_blacklist_
Definition: FeatureFinderMultiplexAlgorithm.h:98
A 1-dimensional raw data point or peak.
Definition: Peak1D.h:54
bool toBool() const
Conversion to bool.
const Param & getDefaults() const
Non-mutable access to the default parameters.
Represents the peptide hits for a spectrum.
Definition: PeptideIdentification.h:62
IntensityType getIntensity() const
Definition: Peak2D.h:166
void trimRight(double cutoff)
Trims the right side of the isotope distribution to isotopes with a significant contribution.
Size applyMemberFunction(Size(Type::*member_function)())
Applies a member function of Type to the container itself and all features (including subordinates)....
Definition: FeatureMap.h:280
A mass trace extraction method that gathers peaks similar in m/z and moving along retention time.
Definition: MassTraceDetection.h:72
A base class for all classes handling default parameters.
Definition: DefaultParamHandler.h:91
A container type that gathers peaks similar in m/z and moving along retention time.
Definition: MassTrace.h:61
data structure for pattern of isotopic peaks
Definition: MultiplexIsotopicPeakPattern.h:54
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...
boost::shared_ptr< ISpectrumAccess > SpectrumAccessPtr
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:89
undefined local chromatography
void filterByPeakWidth(std::vector< MassTrace > &, std::vector< MassTrace > &)
Filter out mass traces below lower 5 % quartile and above upper 95 % quartile.
File adapter for MzML files.
Definition: MzMLFile.h:55
std::vector< PointType > PointArrayType
Definition: ConvexHull2D.h:76
profile data
Definition: SpectrumSettings.h:74
static OpenSwath::SpectrumAccessPtr getSpectrumAccessOpenMSPtr(boost::shared_ptr< OpenMS::PeakMap > exp)
Simple Factory method to get a SpectrumAccess Ptr from an MSExperiment.
void sortSpectra(bool sort_mz=true)
Sorts the data points by retention time.
Base::const_iterator ConstIterator
Definition: FeatureMap.h:140
File not readable exception.
Definition: Exception.h:537
A more convenient string class.
Definition: String.h:58
Coordinate pair (with optional annotation)
Definition: TransformationModel.h:57
Definition: IsotopeDistribution.h:64
Size getNrChromatograms() const
get the total number of chromatograms available
static const String getProductName()
void addChromatogram(const MSChromatogram &chromatogram)
adds a chromatogram to the list
std::map< String, double > label_mass_shift_
Definition: FeatureFinderMultiplexAlgorithm.h:91
File is empty.
Definition: Exception.h:594
double first
Definition: TransformationModel.h:59
This class stores a SRM/MRM transition.
Definition: ReactionMonitoringTransition.h:56
IsotopeDistribution estimateFromPeptideWeight(double average_weight)
Estimate Peptide Isotopedistribution from weight and number of isotopes that should be reported.
RTType retention_time_type
Definition: TargetedExperimentHelper.h:197
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:46
bool empty() const
Definition: MSExperiment.h:137
const std::vector< ProteinIdentification > & getProteinIdentifications() const
non-mutable access to the protein identifications
#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
std::vector< RetentionTime > rts
Definition: TargetedExperimentHelper.h:318
double theoretical_mass
Definition: TargetedExperimentHelper.h:358
std::vector< MassAbundance > ContainerType
Definition: IsotopeDistribution.h:72
static const std::string NamesOfPolarity[SIZE_OF_POLARITY]
Names of polarity of the ion source.
Definition: IonSource.h:148
A 2-dimensional hull representation in [counter]clockwise direction - depending on axis labelling.
Definition: ConvexHull2D.h:72
void setStrictFlag(bool f)
Set the flag for strict mapping.
Definition: MRMFeatureFinderScoring.h:193
Used to load and store TransformationXML files.
Definition: TransformationXMLFile.h:56
static String basename(const String &file)
Returns the basename of the file (without the path).
void setLibraryIntensity(double intensity)
Sets the library intensity (ion count or normalized ion count from a spectral library)
static void prepare_coordinates(std::vector< OpenSwath::ChromatogramPtr > &output_chromatograms, std::vector< ExtractionCoordinates > &coordinates, const OpenMS::TargetedExperiment &transition_exp, const double rt_extraction_window, const bool ms1=false, const int ms1_isotopes=0)
Prepare the extraction coordinates from a TargetedExperiment.
FeatureMap feature_map_
Definition: FeatureFinderMultiplexAlgorithm.h:94
const std::vector< PeptideIdentification > & getUnassignedPeptideIdentifications() const
non-mutable access to the unassigned peptide identifications
ConsensusMap consensus_map_
Definition: FeatureFinderMultiplexAlgorithm.h:95
void setNativeID(const String &name)
Iterator begin()
Definition: IsotopeDistribution.h:198
void store(String filename, const TransformationDescription &transformation)
Stores the data in an TransformationXML file.
MSExperiment exp_centroid_
Definition: FeatureFinderMultiplexAlgorithm.h:75
int main(int argc, const char **argv)
Definition: INIFileEditor.cpp:73
A description of a targeted experiment containing precursor and production ions.
Definition: TargetedExperiment.h:64
The ChromatogramExtractor extracts chromatograms from a spectra file.
Definition: ChromatogramExtractor.h:67
void setMZ(double mz)
sets the MZ of the MS2 spectrum
Param getParameters(const String &algorithm_name) const
Returns the default parameters for the algorithm with name algorithm_name.
void setDataPoints(const DataPoints &data)
Sets the data points.
Isotope pattern generator for coarse isotope distributions.
Definition: CoarseIsotopePatternGenerator.h:96
Parse Error exception.
Definition: Exception.h:622
String molecular_formula
Definition: TargetedExperimentHelper.h:356
PeakFileOptions & getOptions()
Mutable access to the options for loading/storing.
Helper class for fitting elution models to features.
Definition: ElutionModelFitter.h:49