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

no good

parent 9ad8d300
No related branches found
No related tags found
No related merge requests found
......@@ -21,6 +21,7 @@
* Olivier Langella <Olivier.Langella@moulon.inra.fr> - initial API and implementation
******************************************************************************/
#include "identificationdatasource.h"
#include <QFileInfo>
IdentificationDataSource::IdentificationDataSource(pappso::MsRunIdSp & ms_run_sp)
{
......@@ -43,6 +44,10 @@ bool IdentificationDataSource::operator==(const IdentificationDataSource& other)
}
IdentificationDataSourceSp IdentificationDataSource::getInstance(const QString & location) {
QFileInfo location_file(location);
QString ext = location_file.suffix();
}
const QString & IdentificationDataSource::getResourceName () const {
return _resource_name;
......
......@@ -25,20 +25,31 @@
#include <pappsomspp/msrun/msrunid.h>
#include <map>
class IdentificationDataSource;
typedef std::shared_ptr<IdentificationDataSource> IdentificationDataSourceSp;
class IdentificationDataSource
{
public:
static IdentificationDataSourceSp getInstance(const QString & location);
IdentificationDataSource(pappso::MsRunIdSp & ms_run_sp);
IdentificationDataSource(const IdentificationDataSource& other);
~IdentificationDataSource();
bool operator==(const IdentificationDataSource& other) const;
const QString & getResourceName () const;
pappso::MsRunIdSp getMsRunSp () const;
protected :
QString _resource_name;
private :
static std::map<QString, IdentificationDataSource *> _map_identification_data_sources;
static std::map<QString, pappso::MsRunIdSp> _map_msrunidsp;
pappso::MsRunIdSp _ms_run_sp = nullptr;
};
......
......@@ -26,6 +26,7 @@
#include <pappsomspp/msrun/msrunid.h>
#include <pappsomspp/types.h>
#include <pappsomspp/peptide/peptide.h>
#include "identification_sources/identificationdatasource.h"
class PeptideMatch
{
......@@ -42,8 +43,8 @@ public :
private :
pappso::MsRunIdSp _msrunid_sp;
pappso::PeptideSp _peptide_sp;
unsigned int _scan;
pappso::PeptideSp _peptide_sp;
pappso::pappso_double _rt;
pappso::pappso_double _evalue;
pappso::pappso_double _exp_mass;
......
/*******************************************************************************
* 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 "spectrumid.h"
/*******************************************************************************
* 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 <pappsomspp/msrun/msrunid.h>
#ifndef SPECTRUMID_H
#define SPECTRUMID_H
class SpectrumId
{
private :
SpectrumId(pappso::MsRunIdSp msrunid_sp, unsigned int scan);
private :
pappso::MsRunIdSp _msrunid_sp;
unsigned int _scan;
};
#endif // SPECTRUMID_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