 |
OpenMS
3.0.0
|
|
Go to the documentation of this file.
59 static const char* LevelName[SIZE_OF_VALUES];
76 return lowest != OSWHierarchy::Level::SIZE_OF_VALUES;
137 static constexpr
float QVALUE_MISSING = -1;
143 OSWPeakGroup(
const float rt_experimental,
const float rt_left_width,
const float rt_right_width,
const float rt_delta, std::vector<UInt32>&& transition_ids,
const float q_value = -1);
160 return rt_experimental_;
165 return rt_left_width_;
170 return rt_right_width_;
185 return transition_ids_;
189 float rt_experimental_{ 0 };
190 float rt_left_width_{ 0 };
191 float rt_right_width_{ 0 };
192 float rt_delta_{ 0 };
193 float q_value_{ -1 };
211 OSWPeptidePrecursor(
const String& seq,
const short charge,
const bool decoy,
const float precursor_mz, std::vector<OSWPeakGroup>&& features);
239 return precursor_mz_;
251 float precursor_mz_{0};
265 OSWProtein(
const String& accession,
const Size id, std::vector<OSWPeptidePrecursor>&& peptides);
310 transitions_.emplace(tr.
getID(), tr);
316 transitions_.emplace(
id, std::move(tr));
341 checkTransitions_(protein);
342 proteins_[index] = std::move(protein);
348 return transitions_.size();
354 return transitions_.at(
id);
365 source_file_ = filename;
387 void clearProteins();
402 void buildNativeIDResolver(
const MSExperiment& chrom_traces);
406 UInt fromNativeID(
int transition_id)
const;
412 void checkTransitions_(
const OSWProtein& prot)
const;
std::vector< OSWPeptidePrecursor > peptides_
Definition: OSWData.h:293
OPENMS_UINT32_TYPE UInt32
Unsigned integer type (32bit)
Definition: Types.h:63
bool is_decoy_
is this a decoy transition (from a decoy protein/peptide)
Definition: OSWData.h:126
OPENMS_UINT64_TYPE UInt64
Unsigned integer type (64bit)
Definition: Types.h:77
UInt32 id_
ID as used in OSWPeakGroup::transition_ids.
Definition: OSWData.h:123
String source_file_
remember from which sql OSW file this data is loaded (to lazy load more data)
Definition: OSWData.h:417
A Protein is the highest entity and contains one or more peptides which were found/traced.
Definition: OSWData.h:259
const OSWTransition & getTransition(const UInt32 id) const
obtain a certain transition meta information with id (this matches the ID of a chromatogram in an sqM...
Definition: OSWData.h:352
Size getID() const
Definition: OSWData.h:280
std::vector< OSWProtein > proteins_
Definition: OSWData.h:416
A peptide with a charge state.
Definition: OSWData.h:205
UInt32 getID() const
ID as used in OSWPeakGroup::transition_ids.
Definition: OSWData.h:101
A more convenient string class.
Definition: String.h:58
const String & getAnnotation() const
e.g. y5/-0.002
Definition: OSWData.h:96
In-Memory representation of a mass spectrometry run.
Definition: MSExperiment.h:70
float getRTDelta() const
RT difference in seconds to the expected RT.
Definition: OSWData.h:173
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
std::map< UInt32, UInt32 > transID_to_index_
map a Transition.ID (==native_id) to a chromatogram index in the sqMass experiment which contains the...
Definition: OSWData.h:419
void addTransition(OSWTransition &&tr)
Definition: OSWData.h:313
bool isDecoy() const
is this a decoy transition (from a decoy protein/peptide)
Definition: OSWData.h:116
UInt64 getRunID() const
Definition: OSWData.h:378
const std::vector< UInt32 > & getTransitionIDs() const
get the transition ids (can be mapped to the chromatogram XICs in sqMass data)
Definition: OSWData.h:183
Size transitionCount() const
get the total number of transitions (chromatograms)
Definition: OSWData.h:346
void setSqlSourceFile(const String &filename)
Definition: OSWData.h:363
float getPCMz() const
m/z of this charged peptide
Definition: OSWData.h:237
const String & getSqlSourceFile() const
Definition: OSWData.h:368
Size id_
Definition: OSWData.h:292
String annotation_
e.g. y5/-0.002
Definition: OSWData.h:122
high-level meta data of a transition
Definition: OSWData.h:82
const std::map< UInt32, OSWTransition > & getTransitions() const
get all transitions mapped by their ID (UInt32)
Definition: OSWData.h:358
const String & getSequence() const
the peptide sequence (incl. mods)
Definition: OSWData.h:222
Level
the actual levels
Definition: OSWData.h:50
float getProductMZ() const
observed product m/z value
Definition: OSWData.h:106
char type_
b, y,
Definition: OSWData.h:125
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
Definition: OSWData.h:133
float getRTExperimental() const
observed RT apex position in seconds of the feature
Definition: OSWData.h:158
float getQValue() const
this might return QVALUE_MISSING if q-value is not annotated in the OSW file
Definition: OSWData.h:178
void setRunID(const UInt64 run_id)
Definition: OSWData.h:373
void setProtein(const Size index, OSWProtein &&protein)
Definition: OSWData.h:339
const std::vector< OSWProtein > & getProteins() const
Definition: OSWData.h:328
hierarchy levels of the OSWData tree
Definition: OSWData.h:47
short getCharge() const
precursor charge
Definition: OSWData.h:227
std::map< UInt32, OSWTransition > transitions_
Definition: OSWData.h:415
void addTransition(const OSWTransition &tr)
Adds a transition; do this before adding Proteins.
Definition: OSWData.h:308
bool isDecoy() const
is this a decoy feature (from a decoy protein)
Definition: OSWData.h:232
unsigned int UInt
Unsigned integer type.
Definition: Types.h:94
const String & getAccession() const
Definition: OSWData.h:275
const std::vector< OSWPeptidePrecursor > & getPeptidePrecursors() const
Definition: OSWData.h:285
UInt64 run_id_
the ID of this run from the SQL RUN table
Definition: OSWData.h:418
float product_mz_
observed product m/z value
Definition: OSWData.h:124
std::vector< OSWPeakGroup > features_
Definition: OSWData.h:252
String accession_
Definition: OSWData.h:291
float getRTLeftWidth() const
RT position in seconds of the left border.
Definition: OSWData.h:163
std::vector< UInt32 > transition_ids_
Definition: OSWData.h:194
Holds all or partial information from an OSW file.
Definition: OSWData.h:304
String seq_
Definition: OSWData.h:248
const std::vector< OSWPeakGroup > & getFeatures() const
candidate explanations
Definition: OSWData.h:242
char getType() const
b, y
Definition: OSWData.h:111
float getRTRightWidth() const
RT position in seconds of the right border.
Definition: OSWData.h:168