![]() |
OpenMS
|
Class for storing MS run data with peptide and protein identifications. More...
#include <OpenMS/METADATA/AnnotatedMSRun.h>
Classes | |
struct | PairIterator |
Iterator for pairs of spectra and peptide identifications. More... | |
Public Types | |
using | SpectrumIdRef = std::pair< MSSpectrum &, PeptideIdentification & > |
using | ConstSpectrumIdRef = std::pair< const MSSpectrum &, const PeptideIdentification & > |
using | SpectrumType = MSExperiment::SpectrumType |
using | ChromatogramType = MSExperiment::ChromatogramType |
typedef AnnotatedMSRun::PairIterator< std::vector< MSSpectrum >::iterator, std::vector< PeptideIdentification >::iterator > | Iterator |
typedef AnnotatedMSRun::PairIterator< std::vector< MSSpectrum >::const_iterator, std::vector< PeptideIdentification >::const_iterator > | ConstIterator |
Public Member Functions | |
AnnotatedMSRun ()=default | |
Default constructor. More... | |
AnnotatedMSRun (MSExperiment &&experiment) | |
Move constructor for efficiently loading a MSExperiment without a deep copy. More... | |
AnnotatedMSRun (AnnotatedMSRun &&)=default | |
Move constructor. More... | |
AnnotatedMSRun (const AnnotatedMSRun &)=default | |
Copy constructor. More... | |
AnnotatedMSRun & | operator= (const AnnotatedMSRun &)=default |
AnnotatedMSRun & | operator= (AnnotatedMSRun &&)=default |
~AnnotatedMSRun ()=default | |
Destructor. More... | |
std::vector< ProteinIdentification > & | getProteinIdentifications () |
Get the protein identification. More... | |
const std::vector< ProteinIdentification > & | getProteinIdentifications () const |
Get the protein identification (const version) More... | |
std::vector< PeptideIdentification > & | getPeptideIdentifications () |
Get all peptide identifications for all spectra. More... | |
const std::vector< PeptideIdentification > & | getPeptideIdentifications () const |
Get all peptide identifications for all spectra (const version) More... | |
void | setPeptideIdentifications (std::vector< PeptideIdentification > &&ids) |
Set all peptide identifications for all spectra. More... | |
void | setPeptideIdentifications (const std::vector< PeptideIdentification > &ids) |
Set all peptide identifications for all spectra. More... | |
MSExperiment & | getMSExperiment () |
Get the MSExperiment. More... | |
const MSExperiment & | getMSExperiment () const |
Get the MSExperiment (const version) More... | |
void | setMSExperiment (MSExperiment &&experiment) |
Set the MSExperiment. More... | |
void | setMSExperiment (const MSExperiment &experiment) |
Set the MSExperiment. More... | |
auto | cbegin () const |
Get a const iterator to the beginning of the data. More... | |
auto | begin () |
Get an iterator to the beginning of the data. More... | |
auto | begin () const |
Get a const iterator to the beginning of the data. More... | |
auto | end () |
Get an iterator to the end of the data. More... | |
auto | end () const |
Get a const iterator to the end of the data. More... | |
auto | cend () const |
Get a const iterator to the end of the data. More... | |
SpectrumIdRef | operator[] (size_t idx) |
Access a spectrum and its associated peptide identification. More... | |
ConstSpectrumIdRef | operator[] (size_t idx) const |
Access a spectrum and its associated peptide identification (const version) More... | |
Private Member Functions | |
void | checkPeptideIdSize_ (const char *function_name) const |
Private Attributes | |
std::vector< PeptideIdentification > | peptide_ids_ |
std::vector< ProteinIdentification > | protein_ids_ |
MSExperiment | data |
Class for storing MS run data with peptide and protein identifications.
This class stores an MSExperiment (containing spectra) along with peptide and protein identifications. Each spectrum in the MSExperiment is associated with a single PeptideIdentification object.
The class provides methods to access and modify these identifications, as well as iterators to traverse the spectra and their associated identifications together.
typedef AnnotatedMSRun::PairIterator<std::vector<MSSpectrum>::const_iterator, std::vector<PeptideIdentification>::const_iterator> ConstIterator |
using ConstSpectrumIdRef = std::pair<const MSSpectrum&, const PeptideIdentification&> |
typedef AnnotatedMSRun::PairIterator<std::vector<MSSpectrum>::iterator, std::vector<PeptideIdentification>::iterator> Iterator |
using SpectrumIdRef = std::pair<MSSpectrum&, PeptideIdentification&> |
|
default |
Default constructor.
|
inlineexplicit |
Move constructor for efficiently loading a MSExperiment without a deep copy.
experiment | The MSExperiment to move into this object |
|
default |
Move constructor.
|
default |
Copy constructor.
|
default |
Destructor.
|
inline |
Get an iterator to the beginning of the data.
|
inline |
Get a const iterator to the beginning of the data.
|
inline |
Get a const iterator to the beginning of the data.
|
inline |
Get a const iterator to the end of the data.
|
private |
|
inline |
Get an iterator to the end of the data.
|
inline |
Get a const iterator to the end of the data.
MSExperiment& getMSExperiment | ( | ) |
Get the MSExperiment.
Referenced by TOPPViewBase::metadataFileDialog().
const MSExperiment& getMSExperiment | ( | ) | const |
Get the MSExperiment (const version)
std::vector<PeptideIdentification>& getPeptideIdentifications | ( | ) |
Get all peptide identifications for all spectra.
Referenced by IDFilter::keepHitsMatchingProteins().
const std::vector<PeptideIdentification>& getPeptideIdentifications | ( | ) | const |
Get all peptide identifications for all spectra (const version)
|
inline |
Get the protein identification.
Referenced by IDFilter::keepHitsMatchingProteins().
|
inline |
Get the protein identification (const version)
|
default |
|
default |
|
inline |
Access a spectrum and its associated peptide identification.
idx | The index of the spectrum |
|
inline |
Access a spectrum and its associated peptide identification (const version)
idx | The index of the spectrum |
void setMSExperiment | ( | const MSExperiment & | experiment | ) |
Set the MSExperiment.
experiment | The MSExperiment to set |
void setMSExperiment | ( | MSExperiment && | experiment | ) |
Set the MSExperiment.
experiment | The MSExperiment to set |
void setPeptideIdentifications | ( | const std::vector< PeptideIdentification > & | ids | ) |
Set all peptide identifications for all spectra.
ids | Vector of peptide identifications |
void setPeptideIdentifications | ( | std::vector< PeptideIdentification > && | ids | ) |
Set all peptide identifications for all spectra.
ids | Vector of peptide identifications |
|
private |
|
private |
|
private |