Skip to content
Snippets Groups Projects
Commit 3e7a8fe5 authored by Olivier Langella's avatar Olivier Langella
Browse files

all observed ptm positions

parent 0f0e4d5e
No related branches found
No related tags found
No related merge requests found
......@@ -67,7 +67,16 @@ bool PtmSampleScan::add(const PeptideMatch * p_peptide_match) {
}
std::vector<unsigned int> PtmSampleScan::getObservedPtmPositionList(const PtmGroupingExperiment * p_ptm_grouping_experiment) const {
std::vector<unsigned int> list;
return list;
std::vector<unsigned int> position_list;
for (const PeptideMatch * p_peptide_match: _peptide_match_list) {
std::vector<unsigned int> positionb_list = p_ptm_grouping_experiment->getPtmPositions(p_peptide_match);
for (unsigned int position: positionb_list) {
position_list.push_back(position);
}
}
std::sort(position_list.begin(), position_list.end());
auto last = std::unique(position_list.begin(), position_list.end());
position_list.erase(last, position_list.end());
return position_list;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment