OpenMS
Loading...
Searching...
No Matches
AbsoluteQuantitationStandards.h
Go to the documentation of this file.
1// Copyright (c) 2002-present, OpenMS Inc. -- EKU Tuebingen, ETH Zurich, and FU Berlin
2// SPDX-License-Identifier: BSD-3-Clause
3//
4// --------------------------------------------------------------------------
5// $Maintainer: Douglas McCloskey, Pasquale Domenico Colaianni $
6// $Authors: Douglas McCloskey, Pasquale Domenico Colaianni $
7// --------------------------------------------------------------------------
8
9#pragma once
10
11#include <OpenMS/config.h>
13
14namespace OpenMS
15{
16
33 {
34
35public:
38
41
59
76
108 const std::vector<AbsoluteQuantitationStandards::runConcentration>& run_concentrations,
109 const std::vector<FeatureMap>& feature_maps,
110 std::map<std::string, std::vector<AbsoluteQuantitationStandards::featureConcentration>>& components_to_concentrations
111 ) const;
112
130 const std::vector<AbsoluteQuantitationStandards::runConcentration>& run_concentrations,
131 const std::vector<FeatureMap>& feature_maps,
132 const std::string& component_name,
133 std::vector<AbsoluteQuantitationStandards::featureConcentration>& feature_concentrations
134 ) const;
135
136private:
150 const FeatureMap& feature_map,
151 const std::string& component_name,
152 Feature& feature_found
153 ) const;
154 };
155}
156
Bridges sample-level concentration tables with the FeatureMap output of a feature finder,...
Definition AbsoluteQuantitationStandards.h:33
std::string component_name
Identifier of the target component (matched against subordinate-feature meta value "native_id").
Definition AbsoluteQuantitationStandards.h:52
Feature feature
Subordinate feature found in the matching FeatureMap (see mapComponentsToConcentrations for the match...
Definition AbsoluteQuantitationStandards.h:69
std::string sample_name
Sample identifier; matched against FeatureMap::getPrimaryMSRunPath after stripping a ....
Definition AbsoluteQuantitationStandards.h:51
void mapComponentsToConcentrations(const std::vector< AbsoluteQuantitationStandards::runConcentration > &run_concentrations, const std::vector< FeatureMap > &feature_maps, std::map< std::string, std::vector< AbsoluteQuantitationStandards::featureConcentration > > &components_to_concentrations) const
Match each runConcentration to a feature in feature_maps and produce one featureConcentration record ...
~AbsoluteQuantitationStandards()=default
Destructor.
double IS_actual_concentration
Known concentration of the internal standard in this sample.
Definition AbsoluteQuantitationStandards.h:55
double actual_concentration
Known concentration of the target component in this sample.
Definition AbsoluteQuantitationStandards.h:54
bool findComponentFeature_(const FeatureMap &feature_map, const std::string &component_name, Feature &feature_found) const
Locate a subordinate feature whose "native_id" meta value equals component_name.
Feature IS_feature
Subordinate feature for the internal standard. Default-constructed when runConcentration::IS_componen...
Definition AbsoluteQuantitationStandards.h:70
std::string IS_component_name
Identifier of the paired internal standard, or empty if there is none.
Definition AbsoluteQuantitationStandards.h:53
void getComponentFeatureConcentrations(const std::vector< AbsoluteQuantitationStandards::runConcentration > &run_concentrations, const std::vector< FeatureMap > &feature_maps, const std::string &component_name, std::vector< AbsoluteQuantitationStandards::featureConcentration > &feature_concentrations) const
Return the featureConcentration records for a single component name.
AbsoluteQuantitationStandards()=default
Default constructor.
double dilution_factor
Sample dilution factor.
Definition AbsoluteQuantitationStandards.h:57
std::string concentration_units
Units the concentration values are expressed in.
Definition AbsoluteQuantitationStandards.h:56
One target component matched to a feature in the corresponding FeatureMap, paired with its known conc...
Definition AbsoluteQuantitationStandards.h:68
One (sample, target, internal-standard, concentration) entry as provided by the user.
Definition AbsoluteQuantitationStandards.h:50
A container for features.
Definition FeatureMap.h:78
An LC-MS feature.
Definition Feature.h:46
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19