47 class Annotation1DItem;
72 std::unique_ptr<Painter2DBase> getPainter2D()
const override;
74 std::unique_ptr<LayerData1DBase> to1DLayer()
const override;
76 std::unique_ptr<LayerStoreData> storeVisibleData(
const RangeAllType& visible_range,
const DataFilters& layer_filters)
const override;
78 std::unique_ptr<LayerStoreData> storeFullData()
const override;
86 peak_map_->updateRanges();
101 std::unique_ptr<LayerStatistics> getStats()
const override;
103 bool annotate(
const std::vector<PeptideIdentification>& identifications,
const std::vector<ProteinIdentification>& protein_identifications)
override;
107 if ((*peak_map_)[spectrum_idx].size() > 0)
109 return (*peak_map_)[spectrum_idx];
111 if (!on_disc_peaks_->empty())
114 local_spec = on_disc_peaks_->getSpectrum(spectrum_idx);
117 return (*peak_map_)[spectrum_idx];
129 const ConstExperimentSharedPtrType getPeakData()
const;
162 return on_disc_peaks_;
170 return this->getPeakData()->size() > 0 && this->getPeakData()->metaValueExists(
"is_ion_mobility") && this->getPeakData()->getMetaValue(
"is_ion_mobility").toBool();
175 peak_map_->setMetaValue(
"is_ion_mobility",
"true");
181 return this->getPeakData()->size() > 0 && this->getPeakData()->metaValueExists(
"is_dia_data") && this->getPeakData()->getMetaValue(
"is_dia_data").toBool();
187 peak_map_->setMetaValue(
"is_dia_data",
"true");
200 return this->getPeakData()->size() > 0 && this->getPeakData()->metaValueExists(
"is_chromatogram") && this->getPeakData()->getMetaValue(
"is_chromatogram").toBool();
206 peak_map_->setMetaValue(
"is_chromatogram",
"true");
212 if (this->chromatogram_flag_set())
214 peak_map_->removeMetaValue(
"is_chromatogram");
221 ExperimentSharedPtrType peak_map_ = ExperimentSharedPtrType(
new ExperimentType());
bool isDIAData() const
Check whether the current layer contains DIA (SWATH-MS) data.
Definition: LayerDataPeak.h:179
A more convenient string class.
Definition: String.h:58
RangeAllType getRange() const override
Definition: LayerDataPeak.h:90
Class that stores the data for one layer of type PeakMap.
Definition: LayerDataPeak.h:54
OpenMS::Peak1D PeakType
Peak type.
Definition: MSSpectrum.h:110
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
DIM_UNIT
Definition: CommonEnums.h:45
void remove_chromatogram_flag()
remove the chromatogram flag
Definition: LayerDataPeak.h:210
Result of computing a projection on X and Y axis in a 2D Canvas; see LayerDataBase::getProjection() ...
Definition: LayerDataBase.h:76
Representation of a mass spectrometry experiment on disk.
Definition: OnDiscMSExperiment.h:66
The representation of a 1D spectrum.
Definition: MSSpectrum.h:66
auto & assign(const RangeManager< RangeBasesOther... > &rhs)
Definition: RangeManager.h:612
void setPeakData(ExperimentSharedPtrType p)
Set the current in-memory peak data.
Definition: LayerDataPeak.h:148
const ExperimentType::SpectrumType & getSpectrum(Size spectrum_idx) const
Definition: LayerDataPeak.h:105
void set_chromatogram_flag()
set the chromatogram flag
Definition: LayerDataPeak.h:204
bool isIonMobilityData() const
Check whether the current layer should be represented as ion mobility.
Definition: LayerDataPeak.h:168
A 1-dimensional raw data point or peak.
Definition: Peak1D.h:53
void setOnDiscPeakData(ODExperimentSharedPtrType p)
Set the current on-disc data.
Definition: LayerDataPeak.h:154
bool chromatogram_flag_set() const
Check whether the current layer is a chromatogram.
Definition: LayerDataPeak.h:198
const ExperimentSharedPtrType & getPeakDataMuteable()
Returns a mutable reference to the current in-memory peak data.
Definition: LayerDataPeak.h:140
void labelAsDIAData()
Label the current layer as DIA (SWATH-MS) data.
Definition: LayerDataPeak.h:185
In-Memory representation of a mass spectrometry run.
Definition: MSExperiment.h:70
const ODExperimentSharedPtrType & getOnDiscPeakData() const
Returns a mutable reference to the on-disc data.
Definition: LayerDataPeak.h:160
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
void updateRanges() override
Update ranges of the underlying data.
Definition: LayerDataPeak.h:84
DataFilter array providing some convenience functions.
Definition: DataFilters.h:52
Class that stores the data for one layer.
Definition: LayerDataBase.h:191
void labelAsIonMobilityData() const
Definition: LayerDataPeak.h:173
Index of a peak or feature.
Definition: PeakIndex.h:50
MSSpectrum SpectrumType
Definition: MzDataHandler.h:60