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

new class to handle ptm sample scan ambiguity

parent f29c5b92
No related branches found
No related tags found
No related merge requests found
......@@ -73,6 +73,7 @@ SET(CPP_FILES
grouping/ptm/ptmisland.cpp
grouping/ptm/ptmislandgroup.cpp
grouping/ptm/ptmislandsubgroup.cpp
grouping/ptm/ptmsamplescan.cpp
gui/peptide_detail_view/spectrum_widget/spectrumpainter.cpp
input/identificationpwizreader.cpp
input/xpipsaxhandler.cpp
......
......@@ -169,3 +169,9 @@ bool PtmIsland::merge(PtmIslandSp ptm_island_sp) {
return true;
}
}
std::vector<PtmSampleScanSp> PtmIsland::getPtmSampleScanSpList() const {
std::vector<PtmSampleScanSp> sample_scan_list;
return sample_scan_list;
}
......@@ -32,6 +32,7 @@
#include "../../core/proteinmatch.h"
#include "../../core/peptidematch.h"
#include "ptmsamplescan.h"
#include <memory>
class PtmGroupingExperiment;
......@@ -71,6 +72,8 @@ public:
unsigned int getStart() const;
unsigned int size() const;
std::vector<PtmSampleScanSp> getPtmSampleScanSpList() const;
private:
const ProteinMatch * _protein_match_p;
......
/**
* \file grouping/ptm/ptmsamplescan.cpp
* \date 23/7/2017
* \author Olivier Langella
* \brief collection of PTM peptides sharing the same spectrum (sample scan)
*/
/*******************************************************************************
* Copyright (c) 2017 Olivier Langella <olivier.langella@u-psud.fr>.
*
* This file is part of XTPcpp.
*
* XTPcpp is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* XTPcpp is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with XTPcpp. If not, see <http://www.gnu.org/licenses/>.
*
* Contributors:
* Olivier Langella <olivier.langella@u-psud.fr> - initial API and implementation
******************************************************************************/
#include "ptmsamplescan.h"
PtmSampleScan::PtmSampleScan() {
}
PtmSampleScan::PtmSampleScan(const PtmSampleScan& other){
}
PtmSampleScan::~PtmSampleScan() {
}
/**
* \file grouping/ptm/ptmsamplescan.h
* \date 23/7/2017
* \author Olivier Langella
* \brief collection of PTM peptides sharing the same spectrum (sample scan)
*/
/*******************************************************************************
* Copyright (c) 2017 Olivier Langella <olivier.langella@u-psud.fr>.
*
* This file is part of XTPcpp.
*
* XTPcpp is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* XTPcpp is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with XTPcpp. If not, see <http://www.gnu.org/licenses/>.
*
* Contributors:
* Olivier Langella <olivier.langella@u-psud.fr> - initial API and implementation
******************************************************************************/
#ifndef PTMSAMPLESCAN_H
#define PTMSAMPLESCAN_H
#include <memory>
#include "../../core/peptidematch.h"
class PtmSampleScan;
/** \brief shared pointer on a PtmSampleScan object
*/
typedef std::shared_ptr<PtmSampleScan> PtmSampleScanSp;
class PtmSampleScan
{
public:
PtmSampleScan();
PtmSampleScan(const PtmSampleScan& other);
~PtmSampleScan();
private:
std::vector<const PeptideMatch *> _peptide_match_list;
};
#endif // PTMSAMPLESCAN_H
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