44 #include <boost/shared_ptr.hpp>
67 void getRT(std::vector<double>& rt)
const override;
92 boost::shared_ptr<OpenSwath::IFeature>
getFeature(std::string nativeID)
override;
108 std::map<std::string, boost::shared_ptr<FeatureOpenMS> >
features_;
116 template <
typename SpectrumT,
typename TransitionT>
131 std::size_t
size()
const override
138 std::vector<std::string> result;
139 for (std::size_t i = 0; i < this->
size(); i++)
159 template <
typename ContainerT>
166 double sn_win_len_,
unsigned int sn_bin_count_,
bool write_log_messages) :
170 snt_parameters.
setValue(
"win_len", sn_win_len_);
171 snt_parameters.
setValue(
"bin_count", sn_bin_count_);
173 if (write_log_messages)
175 snt_parameters.
setValue(
"write_log_messages",
"true");
179 snt_parameters.
setValue(
"write_log_messages",
"false");
192 typename ContainerT::const_iterator iter =
chromatogram_.MZEnd(RT);
200 typename ContainerT::const_iterator prev = iter;
206 if (std::fabs(prev->getMZ() - RT) < std::fabs(iter->getMZ() - RT) )
const Param & getParameters() const
Non-mutable access to the parameters.
void setParameters(const Param ¶m)
Sets the parameters.
An implementation of the OpenSWATH Feature Access interface using OpenMS.
Definition: MRMFeatureAccessOpenMS.h:60
void getRT(std::vector< double > &rt) const override
~FeatureOpenMS() override
double getRT() const override
float getIntensity() const override
Feature * feature_
Definition: MRMFeatureAccessOpenMS.h:76
FeatureOpenMS(Feature &feature)
void getIntensity(std::vector< double > &intens) const override
An LC-MS feature.
Definition: Feature.h:72
An implementation of the OpenSWATH MRM Feature Access interface using OpenMS.
Definition: MRMFeatureAccessOpenMS.h:85
boost::shared_ptr< OpenSwath::IFeature > getPrecursorFeature(std::string nativeID) override
MRMFeatureOpenMS(MRMFeature &mrmfeature)
boost::shared_ptr< OpenSwath::IFeature > getFeature(std::string nativeID) override
double getRT() const override
std::vector< std::string > getNativeIDs() const override
~MRMFeatureOpenMS() override
float getIntensity() const override
const MRMFeature & mrmfeature_
Definition: MRMFeatureAccessOpenMS.h:107
std::map< std::string, boost::shared_ptr< FeatureOpenMS > > precursor_features_
Definition: MRMFeatureAccessOpenMS.h:109
size_t size() const override
std::map< std::string, boost::shared_ptr< FeatureOpenMS > > features_
Definition: MRMFeatureAccessOpenMS.h:108
std::vector< std::string > getPrecursorIDs() const override
A multi-chromatogram MRM feature.
Definition: MRMFeature.h:52
Size size() const
Definition: MRMTransitionGroup.h:125
std::vector< ChromatogramType > & getChromatograms()
Definition: MRMTransitionGroup.h:186
void getLibraryIntensity(std::vector< double > &result) const
Definition: MRMTransitionGroup.h:344
Management and storage of parameters / INI files.
Definition: Param.h:70
void setValue(const std::string &key, const ParamValue &value, const std::string &description="", const std::vector< std::string > &tags=std::vector< std::string >())
Sets a value.
virtual void init(const Container &c)
Set the start and endpoint of the raw data interval, for which signal to noise ratios will be estimat...
Definition: SignalToNoiseEstimator.h:101
virtual double getSignalToNoise(const Size index) const
Definition: SignalToNoiseEstimator.h:109
An implementation of the OpenSWATH SignalToNoise Access interface using OpenMS.
Definition: MRMFeatureAccessOpenMS.h:162
OpenMS::SignalToNoiseEstimatorMedian< ContainerT > sn_
Definition: MRMFeatureAccessOpenMS.h:221
SignalToNoiseOpenMS(ContainerT &chromat, double sn_win_len_, unsigned int sn_bin_count_, bool write_log_messages)
Definition: MRMFeatureAccessOpenMS.h:165
const ContainerT & chromatogram_
Definition: MRMFeatureAccessOpenMS.h:220
double getValueAtRT(double RT) override
Definition: MRMFeatureAccessOpenMS.h:186
An implementation of the OpenSWATH Transition Group Access interface using OpenMS.
Definition: MRMFeatureAccessOpenMS.h:119
~TransitionGroupOpenMS() override
Definition: MRMFeatureAccessOpenMS.h:127
std::vector< std::string > getNativeIDs() const override
Definition: MRMFeatureAccessOpenMS.h:136
const MRMTransitionGroup< SpectrumT, TransitionT > & trgroup_
Definition: MRMFeatureAccessOpenMS.h:152
TransitionGroupOpenMS(MRMTransitionGroup< SpectrumT, TransitionT > &trgroup)
Definition: MRMFeatureAccessOpenMS.h:122
void getLibraryIntensities(std::vector< double > &intensities) const override
Definition: MRMFeatureAccessOpenMS.h:146
std::size_t size() const override
Definition: MRMFeatureAccessOpenMS.h:131
Definition: ITransition.h:47
Definition: ITransition.h:57
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
Definition: ITransition.h:78
Definition: ITransition.h:70