18 #include <boost/shared_ptr.hpp>
41 void getRT(std::vector<double>& rt)
const override;
66 boost::shared_ptr<OpenSwath::IFeature>
getFeature(std::string nativeID)
override;
78 size_t size()
const override;
82 std::map<std::string, boost::shared_ptr<FeatureOpenMS> >
features_;
90 template <
typename SpectrumT,
typename TransitionT>
105 std::size_t
size()
const override
112 std::vector<std::string> result;
113 for (std::size_t i = 0; i < this->
size(); i++)
133 template <
typename ContainerT>
140 double sn_win_len_,
unsigned int sn_bin_count_,
bool write_log_messages) :
144 snt_parameters.
setValue(
"win_len", sn_win_len_);
145 snt_parameters.
setValue(
"bin_count", sn_bin_count_);
147 if (write_log_messages)
149 snt_parameters.
setValue(
"write_log_messages",
"true");
153 snt_parameters.
setValue(
"write_log_messages",
"false");
174 typename ContainerT::const_iterator prev = iter;
180 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:34
void getRT(std::vector< double > &rt) const override
~FeatureOpenMS() override
double getRT() const override
float getIntensity() const override
Feature * feature_
Definition: MRMFeatureAccessOpenMS.h:50
FeatureOpenMS(Feature &feature)
void getIntensity(std::vector< double > &intens) const override
An LC-MS feature.
Definition: Feature.h:46
An implementation of the OpenSWATH MRM Feature Access interface using OpenMS.
Definition: MRMFeatureAccessOpenMS.h:59
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:81
std::map< std::string, boost::shared_ptr< FeatureOpenMS > > precursor_features_
Definition: MRMFeatureAccessOpenMS.h:83
size_t size() const override
std::map< std::string, boost::shared_ptr< FeatureOpenMS > > features_
Definition: MRMFeatureAccessOpenMS.h:82
std::vector< std::string > getPrecursorIDs() const override
A multi-chromatogram MRM feature.
Definition: MRMFeature.h:26
Size size() const
Definition: MRMTransitionGroup.h:99
std::vector< ChromatogramType > & getChromatograms()
Definition: MRMTransitionGroup.h:160
void getLibraryIntensity(std::vector< double > &result) const
Definition: MRMTransitionGroup.h:319
Management and storage of parameters / INI files.
Definition: Param.h:44
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:75
virtual double getSignalToNoise(const Size index) const
Definition: SignalToNoiseEstimator.h:83
An implementation of the OpenSWATH SignalToNoise Access interface using OpenMS.
Definition: MRMFeatureAccessOpenMS.h:136
OpenMS::SignalToNoiseEstimatorMedian< ContainerT > sn_
Definition: MRMFeatureAccessOpenMS.h:195
SignalToNoiseOpenMS(ContainerT &chromat, double sn_win_len_, unsigned int sn_bin_count_, bool write_log_messages)
Definition: MRMFeatureAccessOpenMS.h:139
const ContainerT & chromatogram_
Definition: MRMFeatureAccessOpenMS.h:194
double getValueAtRT(double RT) override
Definition: MRMFeatureAccessOpenMS.h:160
An implementation of the OpenSWATH Transition Group Access interface using OpenMS.
Definition: MRMFeatureAccessOpenMS.h:93
~TransitionGroupOpenMS() override
Definition: MRMFeatureAccessOpenMS.h:101
std::vector< std::string > getNativeIDs() const override
Definition: MRMFeatureAccessOpenMS.h:110
const MRMTransitionGroup< SpectrumT, TransitionT > & trgroup_
Definition: MRMFeatureAccessOpenMS.h:126
TransitionGroupOpenMS(MRMTransitionGroup< SpectrumT, TransitionT > &trgroup)
Definition: MRMFeatureAccessOpenMS.h:96
void getLibraryIntensities(std::vector< double > &intensities) const override
Definition: MRMFeatureAccessOpenMS.h:120
std::size_t size() const override
Definition: MRMFeatureAccessOpenMS.h:105
Definition: ITransition.h:21
Definition: ITransition.h:31
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:97
Main OpenMS namespace.
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19
Definition: ITransition.h:52
Definition: ITransition.h:44