46 void getRT(std::vector<double>& rt)
const override;
72 const std::vector<std::string>& feature_ids,
73 const std::vector<std::string>& precursor_feature_ids);
85 const std::vector<std::string>& feature_ids,
86 const std::vector<std::string>& precursor_feature_ids,
87 const std::vector<std::string>& feature_lookup_ids,
88 const std::vector<std::string>& precursor_feature_lookup_ids);
92 std::shared_ptr<OpenSwath::IFeature>
getFeature(std::string nativeID)
override;
108 void getFeatureIntensities(
const std::vector<std::string>& native_ids, std::vector<std::vector<double>>& intensities)
const;
162 template <
typename SpectrumT,
typename TransitionT>
177 std::size_t
size()
const override
184 std::vector<std::string> result;
185 for (std::size_t i = 0; i < this->
size(); i++)
205 template <
typename ContainerT>
212 double sn_win_len_,
unsigned int sn_bin_count_,
bool write_log_messages) :
216 snt_parameters.
setValue(
"win_len", sn_win_len_);
217 snt_parameters.
setValue(
"bin_count", sn_bin_count_);
219 if (write_log_messages)
221 snt_parameters.
setValue(
"write_log_messages",
"true");
225 snt_parameters.
setValue(
"write_log_messages",
"false");
252 if (std::fabs(prev->getPos() -
RT) < std::fabs(iter->getPos() -
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:39
void getRT(std::vector< double > &rt) const override
~FeatureOpenMS() override
double getRT() const override
float getIntensity() const override
FeatureOpenMS(const Feature &feature)
void getIntensity(std::vector< double > &intens) const override
const Feature * feature_
Definition MRMFeatureAccessOpenMS.h:55
An LC-MS feature.
Definition Feature.h:46
An implementation of the OpenSWATH MRM Feature Access interface using OpenMS.
Definition MRMFeatureAccessOpenMS.h:64
std::unique_ptr< FeatureLane_ > precursor_feature_lane_
Precursor-feature access lane for precursor chromatogram features.
Definition MRMFeatureAccessOpenMS.h:155
void getFeatureIntensities(const std::vector< std::string > &native_ids, std::vector< std::vector< double > > &intensities) const
std::vector< std::string > getNativeIDs() const override
MRMFeatureOpenMS(MRMFeature &mrmfeature)
Build access lanes from the native-id maps stored in mrmfeature.
float getFeatureIntensity(const std::string &native_id, Size expected_index) const
Return the fragment-feature intensity for native_id.
double getRT() const override
~MRMFeatureOpenMS() override
float getIntensity() const override
std::shared_ptr< OpenSwath::IFeature > getFeature(std::string nativeID) override
void getPrecursorFeatureIntensities(const std::vector< std::string > &native_ids, std::vector< std::vector< double > > &intensities) const
std::vector< std::string > getPrecursorIDs() const override
MRMFeatureOpenMS(MRMFeature &mrmfeature, const std::vector< std::string > &feature_ids, const std::vector< std::string > &precursor_feature_ids, const std::vector< std::string > &feature_lookup_ids, const std::vector< std::string > &precursor_feature_lookup_ids)
Build access lanes with externally aligned native-id order.
const MRMFeature & mrmfeature_
Definition MRMFeatureAccessOpenMS.h:151
size_t size() const override
std::unique_ptr< FeatureLane_ > feature_lane_
Fragment-feature access lane. May use aligned ids when the caller provides storage-aligned feature id...
Definition MRMFeatureAccessOpenMS.h:153
double getMetaValue(std::string name) const
std::shared_ptr< OpenSwath::IFeature > getPrecursorFeature(std::string nativeID) override
MRMFeatureOpenMS(MRMFeature &mrmfeature, const std::vector< std::string > &feature_ids, const std::vector< std::string > &precursor_feature_ids)
Build pointer-based access lanes from explicit fragment and precursor native-id lists.
A multi-chromatogram MRM feature.
Definition MRMFeature.h:26
The representation of a group of transitions in a targeted proteomics experiment.
Definition MRMTransitionGroup.h:42
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:46
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:208
OpenMS::SignalToNoiseEstimatorMedian< ContainerT > sn_
Definition MRMFeatureAccessOpenMS.h:267
SignalToNoiseOpenMS(const ContainerT &chromat, double sn_win_len_, unsigned int sn_bin_count_, bool write_log_messages)
Definition MRMFeatureAccessOpenMS.h:211
const ContainerT & chromatogram_
Definition MRMFeatureAccessOpenMS.h:266
double getValueAtRT(double RT) override
Definition MRMFeatureAccessOpenMS.h:232
An implementation of the OpenSWATH Transition Group Access interface using OpenMS.
Definition MRMFeatureAccessOpenMS.h:165
~TransitionGroupOpenMS() override
Definition MRMFeatureAccessOpenMS.h:173
std::vector< std::string > getNativeIDs() const override
Definition MRMFeatureAccessOpenMS.h:182
const MRMTransitionGroup< SpectrumT, TransitionT > & trgroup_
Definition MRMFeatureAccessOpenMS.h:198
TransitionGroupOpenMS(MRMTransitionGroup< SpectrumT, TransitionT > &trgroup)
Definition MRMFeatureAccessOpenMS.h:168
void getLibraryIntensities(std::vector< double > &intensities) const override
Definition MRMFeatureAccessOpenMS.h:192
std::size_t size() const override
Definition MRMFeatureAccessOpenMS.h:177
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:53
Definition ITransition.h:45