24 #include <boost/numeric/conversion/cast.hpp>
35 namespace TargetedExperimentHelper
125 retention_time_unit(
RTUnit::SIZE_OF_RTUNIT),
126 retention_time_type(
RTType::SIZE_OF_RTTYPE),
127 retention_time_set_(false),
144 software_ref == rhs.software_ref &&
145 retention_time_unit == rhs.retention_time_unit &&
146 retention_time_type == rhs.retention_time_type &&
147 retention_time_set_ == rhs.retention_time_set_ &&
148 retention_time_ == rhs.retention_time_;
153 return retention_time_set_;
157 retention_time_ = rt;
158 retention_time_set_ =
true;
163 return retention_time_;
199 charge_ == rhs.charge_ &&
200 charge_set_ == rhs.charge_set_;
240 return (!rts.empty() && rts[0].isRTset());
249 if (!hasRetentionTime())
252 "No retention time information available");
254 return rts[0].getRT();
260 if (!hasRetentionTime())
263 "No retention time information available");
265 return rts[0].retention_time_type;
271 if (!hasRetentionTime())
274 "No retention time information available");
276 return rts[0].retention_time_unit;
281 std::vector<RetentionTime>
rts;
285 bool charge_set_{
false};
286 double drift_time_{-1};
301 theoretical_mass(0.0)
313 molecular_formula == rhs.molecular_formula &&
314 smiles_string == rhs.smiles_string &&
315 theoretical_mass == rhs.theoretical_mass;
362 protein_refs == rhs.protein_refs &&
363 evidence == rhs.evidence &&
364 sequence == rhs.sequence &&
366 peptide_group_label_ == rhs.peptide_group_label_;
382 peptide_group_label_ = label;
388 return peptide_group_label_;
395 std::vector<Modification>
mods;
589 return configuration_list_;
594 configuration_list_.push_back(configuration);
599 return interpretation_list_;
604 interpretation_list_.push_back(interpretation);
609 return interpretation_list_.clear();
614 bool charge_set_{
false};
Representation of a peptide/protein sequence.
Definition: AASequence.h:86
Interface to the controlled vocabulary term list.
Definition: CVTermListInterface.h:33
bool operator==(const CVTermListInterface &rhs) const
equality operator
Representation of controlled vocabulary term list.
Definition: CVTermList.h:28
bool operator==(const CVTermList &cv_term_list) const
equality operator
A method or algorithm argument contains illegal values.
Definition: Exception.h:624
Representation of an amino acid residue.
Definition: Residue.h:37
ResidueType
Definition: Residue.h:126
A more convenient string class.
Definition: String.h:34
Represents a compound (small molecule)
Definition: TargetedExperimentHelper.h:297
String molecular_formula
Definition: TargetedExperimentHelper.h:318
double theoretical_mass
Definition: TargetedExperimentHelper.h:320
Compound(const Compound &)=default
Compound(Compound &&) noexcept=default
String smiles_string
Definition: TargetedExperimentHelper.h:319
Compound()
Definition: TargetedExperimentHelper.h:300
Base class to represent either a peptide or a compound.
Definition: TargetedExperimentHelper.h:186
std::vector< RetentionTime > rts
Definition: TargetedExperimentHelper.h:281
bool hasRetentionTime() const
Check whether compound or peptide has an annotated retention time.
Definition: TargetedExperimentHelper.h:238
double getRetentionTime() const
Gets compound or peptide retention time.
Definition: TargetedExperimentHelper.h:247
PeptideCompound(const PeptideCompound &)=default
String id
Definition: TargetedExperimentHelper.h:280
int getChargeState() const
Return the peptide or compound charge state.
Definition: TargetedExperimentHelper.h:217
bool operator==(const PeptideCompound &rhs) const
Definition: TargetedExperimentHelper.h:194
PeptideCompound(PeptideCompound &&) noexcept=default
void setChargeState(int charge)
Set the peptide or compound charge state.
Definition: TargetedExperimentHelper.h:204
RetentionTime::RTType getRetentionTimeType() const
Get compound or peptide retentiontime type.
Definition: TargetedExperimentHelper.h:258
PeptideCompound()=default
bool hasCharge() const
Whether peptide or compound has set charge state.
Definition: TargetedExperimentHelper.h:211
RetentionTime::RTUnit getRetentionTimeUnit() const
Get compound or peptide retentiontime unit (minute/seconds)
Definition: TargetedExperimentHelper.h:269
double getDriftTime() const
Return the peptide or compound ion mobility drift time.
Definition: TargetedExperimentHelper.h:230
void setDriftTime(double dt)
Set the peptide or compound ion mobility drift time.
Definition: TargetedExperimentHelper.h:224
Represents a peptide (amino acid sequence)
Definition: TargetedExperimentHelper.h:334
String getPeptideGroupLabel() const
Get the peptide group label.
Definition: TargetedExperimentHelper.h:386
String sequence
Definition: TargetedExperimentHelper.h:394
Peptide(const Peptide &)=default
CVTermList evidence
Definition: TargetedExperimentHelper.h:393
std::vector< Modification > mods
Definition: TargetedExperimentHelper.h:395
std::vector< String > protein_refs
Definition: TargetedExperimentHelper.h:392
void setPeptideGroupLabel(const String &label)
Set the peptide group label.
Definition: TargetedExperimentHelper.h:380
Peptide(Peptide &&) noexcept=default
String peptide_group_label_
Definition: TargetedExperimentHelper.h:398
This class stores a retention time structure that is used in TargetedExperiment (representing a TraML...
Definition: TargetedExperimentHelper.h:100
double getRT() const
Definition: TargetedExperimentHelper.h:160
String software_ref
Definition: TargetedExperimentHelper.h:166
RetentionTime(RetentionTime &&) noexcept=default
bool retention_time_set_
Definition: TargetedExperimentHelper.h:172
RetentionTime(const RetentionTime &)=default
RTUnit
Definition: TargetedExperimentHelper.h:104
RTType
Definition: TargetedExperimentHelper.h:112
RetentionTime()
Definition: TargetedExperimentHelper.h:122
RTUnit retention_time_unit
Definition: TargetedExperimentHelper.h:167
RTType retention_time_type
Definition: TargetedExperimentHelper.h:168
double retention_time_
Definition: TargetedExperimentHelper.h:173
bool isRTset() const
Definition: TargetedExperimentHelper.h:151
void setRT(double rt)
Definition: TargetedExperimentHelper.h:155
OPENMS_INT32_TYPE Int32
Signed integer type (32bit)
Definition: Types.h:30
#define OPENMS_PRECONDITION(condition, message)
Precondition macro.
Definition: openms/include/OpenMS/CONCEPT/Macros.h:94
bool operator==(const IDBoostGraph::ProteinGroup &lhs, const IDBoostGraph::ProteinGroup &rhs)
OpenMS::AASequence getAASequence(const Peptide &peptide)
helper function that converts a Peptide object to a AASequence object
void setModification(int location, int max_size, const String &modification, OpenMS::AASequence &aas)
helper function that sets a modification on a AASequence object
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:22
Definition: TargetedExperimentHelper.h:47
String fullname
Definition: TargetedExperimentHelper.h:58
bool operator==(const CV &cv) const
Definition: TargetedExperimentHelper.h:62
String version
Definition: TargetedExperimentHelper.h:59
String id
Definition: TargetedExperimentHelper.h:57
CV(const String &new_id, const String &new_fullname, const String &new_version, const String &new_URI)
Definition: TargetedExperimentHelper.h:48
String URI
Definition: TargetedExperimentHelper.h:60
Definition: TargetedExperimentHelper.h:40
String instrument_ref
Definition: TargetedExperimentHelper.h:42
std::vector< CVTermList > validations
Definition: TargetedExperimentHelper.h:43
String contact_ref
Definition: TargetedExperimentHelper.h:41
Definition: TargetedExperimentHelper.h:437
bool operator==(const Instrument &rhs) const
Definition: TargetedExperimentHelper.h:443
String id
Definition: TargetedExperimentHelper.h:449
Instrument()
Definition: TargetedExperimentHelper.h:438
Product ion interpretation.
Definition: TargetedExperimentHelper.h:479
IonType iontype
which type of ion (b/y/z/ ...), see Residue::ResidueType
Definition: TargetedExperimentHelper.h:509
bool operator!=(const Interpretation &rhs) const
Definition: TargetedExperimentHelper.h:531
Interpretation()
Definition: TargetedExperimentHelper.h:512
Residue::ResidueType IonType
Interpretation IonType.
Definition: TargetedExperimentHelper.h:505
bool operator==(const Interpretation &rhs) const
Definition: TargetedExperimentHelper.h:523
unsigned char ordinal
MS:1000903 : product ion series ordinal (e.g. 8 for a y8 ion)
Definition: TargetedExperimentHelper.h:507
unsigned char rank
MS:1000926 : product interpretation rank (e.g. 1 for the most likely rank)
Definition: TargetedExperimentHelper.h:508
Definition: TargetedExperimentHelper.h:338
Int32 unimod_id
Definition: TargetedExperimentHelper.h:342
double mono_mass_delta
Definition: TargetedExperimentHelper.h:340
double avg_mass_delta
Definition: TargetedExperimentHelper.h:339
Int32 location
Definition: TargetedExperimentHelper.h:341
Modification()
Definition: TargetedExperimentHelper.h:344
Definition: TargetedExperimentHelper.h:454
String software_ref
Definition: TargetedExperimentHelper.h:467
Prediction()
Definition: TargetedExperimentHelper.h:455
String contact_ref
Definition: TargetedExperimentHelper.h:468
bool operator==(const Prediction &rhs) const
Definition: TargetedExperimentHelper.h:460
Definition: TargetedExperimentHelper.h:74
String sequence
Definition: TargetedExperimentHelper.h:84
String id
Definition: TargetedExperimentHelper.h:83
bool operator==(const Protein &rhs) const
Definition: TargetedExperimentHelper.h:76
Definition: TargetedExperimentHelper.h:420
bool operator==(const Publication &rhs) const
Definition: TargetedExperimentHelper.h:426
String id
Definition: TargetedExperimentHelper.h:432
Publication()
Definition: TargetedExperimentHelper.h:421
Represents a product ion.
Definition: TargetedExperimentHelper.h:547
void resetInterpretations()
Definition: TargetedExperimentHelper.h:607
void addConfiguration(const Configuration &configuration)
Definition: TargetedExperimentHelper.h:592
void addInterpretation(const Interpretation &interpretation)
Definition: TargetedExperimentHelper.h:602
const std::vector< Configuration > & getConfigurationList() const
Definition: TargetedExperimentHelper.h:587
void setMZ(double mz)
Definition: TargetedExperimentHelper.h:582
const std::vector< Interpretation > & getInterpretationList() const
Definition: TargetedExperimentHelper.h:597
int getChargeState() const
Definition: TargetedExperimentHelper.h:571
bool charge_set_
Whether product ion charge is set or not.
Definition: TargetedExperimentHelper.h:614
void setChargeState(int charge)
Definition: TargetedExperimentHelper.h:559
std::vector< Configuration > configuration_list_
Product ion configurations used.
Definition: TargetedExperimentHelper.h:616
int charge_
Product ion charge.
Definition: TargetedExperimentHelper.h:613
bool hasCharge() const
Whether product has set charge state.
Definition: TargetedExperimentHelper.h:566
std::vector< Interpretation > interpretation_list_
Product ion interpretation.
Definition: TargetedExperimentHelper.h:617
bool operator==(const TraMLProduct &rhs) const
Definition: TargetedExperimentHelper.h:549
double mz_
Product ion m/z.
Definition: TargetedExperimentHelper.h:615
double getMZ() const
Definition: TargetedExperimentHelper.h:577