timsxicextractorinterface.cpp
Go to the documentation of this file.
/**
* \file pappsomspp/vendors/tims/xicextractor/timsxicextractorinterface.cpp
* \date 21/09/2019
* \author Olivier Langella
* \brief minimum functions to extract XICs from Tims Data
*/
/*******************************************************************************
* Copyright (c) 2019 Olivier Langella <Olivier.Langella@u-psud.fr>.
*
* This file is part of the PAPPSOms++ library.
*
* PAPPSOms++ 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.
*
* PAPPSOms++ 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 PAPPSOms++. If not, see <http://www.gnu.org/licenses/>.
*
******************************************************************************/
#include "timsxicextractorinterface.h"
#include "../../../msrun/private/timsmsrunreaderms2.h"
#include "../../../exception/exceptionnotpossible.h"
using namespace pappso;
TimsXicExtractorInterface::TimsXicExtractorInterface(
MsRunReaderSPtr &msrun_reader)
: MsRunXicExtractorInterface(msrun_reader)
{
pappso::TimsMsRunReaderMs2 *tims2_reader =
dynamic_cast<pappso::TimsMsRunReaderMs2 *>(msrun_reader.get());
if(tims2_reader != nullptr)
{
mp_timsData = tims2_reader->getTimsDataSPtr().get();
}
else
{
throw pappso::ExceptionNotPossible(QObject::tr(
"error: TimsXicExtractorInterface must use a TimsMsRunReaderMs2"));
}
}
TimsXicExtractorInterface::~TimsXicExtractorInterface()
{
}
pappso::ExceptionNotPossible
Definition: exceptionnotpossible.h:29
pappso::MsRunXicExtractorInterface
Definition: msrunxicextractorinterface.h:49
pappso::TimsMsRunReaderMs2
Definition: timsmsrunreaderms2.h:41
pappso::TimsMsRunReaderMs2::getTimsDataSPtr
virtual TimsDataSp getTimsDataSPtr()
give an access to the underlying raw data pointer
Definition: timsmsrunreaderms2.cpp:277
pappso::TimsXicExtractorInterface::~TimsXicExtractorInterface
virtual ~TimsXicExtractorInterface()
Definition: timsxicextractorinterface.cpp:52
pappso::TimsXicExtractorInterface::mp_timsData
TimsData * mp_timsData
Definition: timsxicextractorinterface.h:51
pappso::TimsXicExtractorInterface::TimsXicExtractorInterface
TimsXicExtractorInterface(MsRunReaderSPtr &msrun_reader)
Definition: timsxicextractorinterface.cpp:34
pappso
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
Definition: aa.cpp:39
pappso::MsRunReaderSPtr
std::shared_ptr< MsRunReader > MsRunReaderSPtr
Definition: msrunreader.h:184
timsxicextractorinterface.h
minimum functions to extract XICs from Tims Data