35 : msp_peptide(peptide)
41 : msp_peptide(other.msp_peptide)
54 m_observationList.push_back(observation);
56std::vector<std::uint8_t>
59 std::vector<std::uint8_t> charge_list;
60 for(
auto &observation : m_observationList)
62 charge_list.push_back(observation.m_charge);
64 std::sort(charge_list.begin(), charge_list.end());
66 charge_list.erase(std::unique(charge_list.begin(), charge_list.end()),
81 double intensity = -1;
82 for(
auto &observation : m_observationList)
84 if(observation.msp_precursor.get()->getIntensity() > intensity)
87 observation.msp_precursor.get()->getXicCoordSPtr().get()->rtTarget;
88 intensity = observation.msp_precursor.get()->getIntensity();
97 std::uint8_t charge)
const
104 for(
auto &observation : m_observationList)
106 if(observation.m_charge == charge)
108 if(observation.msp_precursor.get()->getIntensity() > intensity)
110 intensity = observation.msp_precursor.get()->getIntensity();
112 observation.msp_precursor.get()->getXicCoordSPtr();
117 return best_xic_coord;
128 for(
auto &observation : m_observationList)
130 if(observation.msp_precursor.get()->getIntensity() > intensity)
132 intensity = observation.msp_precursor.get()->getIntensity();
133 best_xic_coord = observation.msp_precursor.get()->getXicCoordSPtr();
137 return best_xic_coord;
144 std::vector<double> rt_list;
145 for(
auto &observation : m_observationList)
148 observation.msp_precursor.get()->getXicCoordSPtr().get()->rtTarget);
154const std::vector<pappso::masschroq::PeptideObservation::Observation> &
157 return m_observationList;
const std::vector< Observation > & getObservationList() const
pappso::XicCoordSPtr getBestXicCoord() const
virtual ~PeptideObservation()
std::vector< double > getObservedRetentionTimesOverallChargeStates() const
void addObservation(const PeptideObservation::Observation &observation)
std::vector< std::uint8_t > getObservedChargeStates() const
std::vector< Observation > m_observationList
double getBestRtOverallChargeStates() const
const PeptideSp & getPeptideSp() const
pappso::XicCoordSPtr getBestXicCoordSPtrForCharge(std::uint8_t charge) const
PeptideObservation(PeptideSp peptide)
std::shared_ptr< Peptide > PeptideSp
double pappso_double
A type definition for doubles.
std::shared_ptr< XicCoord > XicCoordSPtr