67      throw PappsoException(QObject::tr(
"ERROR in TimsMsRunReaderMs2::initialize " 
   68                                        "msp_timsData is null for MsRunId %1")
 
 
   86        QObject::tr(
"ERROR in TimsMsRunReaderMs2::setMs2BuiltinCentroid " 
   87                    "mp_timsDdaPrecursors is null"));
 
 
  102        QObject::tr(
"ERROR in TimsMsRunReaderMs2::setMs2FilterCstSPtr " 
  103                    "mp_timsDdaPrecursors is null"));
 
 
  118        QObject::tr(
"ERROR in TimsMsRunReaderMs2::setMs1FilterCstSPtr " 
  119                    "msp_timsData is null"));
 
 
  151  std::size_t precursor_index = (spectrum_index / 2) + 1;
 
  159      throw ExceptionNotFound(QObject::tr(
"spectrum_index %1 NOT FOUND in file %2 : %3")
 
  162                                .arg(error.
qwhat()));
 
  165  if(spectrum_index % 2 == 0)
 
  171        getMsRunId(), mass_spectrum_ms1, spectrum_descr, want_binary_data);
 
  175      return mass_spectrum_ms1;
 
  181      if(spectrum_descr.
ms2_index != spectrum_index)
 
  184          throw PappsoException(QObject::tr(
"ERROR in %1 %2 %3 spectrum_descr.ms2_index(%4) != " 
  185                                            "spectrum_index(%5)")
 
  190                                  .arg(spectrum_index));
 
  194        getMsRunId(), mass_spectrum_ms2, spectrum_descr, want_binary_data);
 
  198      return mass_spectrum_ms2;
 
 
  219                                                    unsigned int ms_level)
 
 
  278std::vector<std::size_t>
 
  300  std::size_t precursor_index = (spectrum_index / 2) + 1;
 
  301  auto xic = this->
msp_timsData.get()->getTimsDdaPrecursorsPtr()->getXicCoordTimsFromPrecursorId(
 
  302    precursor_index, precision);
 
  304  xic_coord.get()->
mzRange      = xic.mzRange;
 
  305  xic_coord.get()->
rtTarget     = xic.rtTarget;
 
 
  324  return msp_timsData.get()->getRetentionTimeLineInSeconds();
 
 
  344    QObject::tr(
"%1 %2 %3 not implemented").arg(__FILE__).arg(__FUNCTION__).arg(__LINE__));
 
 
std::size_t getSpectrumIndex() const
 
MsRunIdCstSPtr mcsp_msRunId
 
bool isMonoThread() const
 
const MsRunIdCstSPtr & getMsRunId() const
 
virtual const QString & qwhat() const
 
Class representing a fully specified mass spectrum.
 
const MassSpectrumId & getMassSpectrumId() const
Get the MassSpectrumId.
 
MassSpectrumSPtr getMassSpectrumSPtr() const
Get the MassSpectrumSPtr.
 
interface to collect spectrums from the MsRunReader class
 
virtual void loadingEnded()
 
virtual void spectrumListHasSize(std::size_t size)
 
TimsMsRunReaderBase(MsRunIdCstSPtr &msrun_id_csp)
 
void setMs2FilterCstSPtr(pappso::FilterInterfaceCstSPtr filter)
 
void setMs1FilterCstSPtr(pappso::FilterInterfaceCstSPtr filter)
 
virtual QualifiedMassSpectrum qualifiedMassSpectrum(std::size_t spectrum_index, bool want_binary_data=true) const override
get a QualifiedMassSpectrum class given its scan number
 
TimsMsRunReaderMs2(MsRunIdCstSPtr &msrun_id_csp)
 
virtual pappso::XicCoordSPtr newXicCoordSPtrFromSpectrumIndex(std::size_t spectrum_index, pappso::PrecisionPtr precision) const override
get a xic coordinate object from a given spectrum index
 
virtual MassSpectrumSPtr massSpectrumSPtr(std::size_t spectrum_index) override
get a MassSpectrumSPtr class given its spectrum index
 
pappso::FilterInterfaceCstSPtr msp_ms2Filter
 
TimsDdaPrecursors * mp_timsDdaPrecursors
 
virtual std::size_t spectrumListSize() const override
get the totat number of spectrum conained in the MSrun data file
 
virtual bool releaseDevice() override
release data back end device if a the data back end is released, the developper has to use acquireDev...
 
pappso::FilterInterfaceCstSPtr msp_ms1Filter
 
virtual void readSpectrumCollection(SpectrumCollectionHandlerInterface &handler) override
function to visit an MsRunReader and get each Spectrum in a spectrum collection handler
 
virtual std::vector< std::size_t > getPrecursorsIDFromMzRt(int charge, double mz_val, double rt_sec, double k0)
Get all the precursors id which match the values.
 
virtual void initialize() override
 
virtual TimsDataSp getTimsDataSPtr() override
give an access to the underlying raw data pointer
 
virtual std::vector< double > getRetentionTimeLine() override
retention timeline get retention times along the MSrun in seconds
 
virtual std::size_t spectrumStringIdentifier2SpectrumIndex(const QString &spectrum_identifier) override
if possible, get the spectrum index given a string identifier throw a not found exception if spectrum...
 
bool m_builtinMs2Centroid
enable builtin centroid on raw tims integers by default
 
virtual Trace getTicChromatogram() override
get a TIC chromatogram
 
void setMs2BuiltinCentroid(bool centroid)
enable or disable simple centroid filter on raw tims data for MS2
 
virtual void readSpectrumCollection2(const MsRunReadConfig &config, SpectrumCollectionHandlerInterface &handler) override
 
virtual void readSpectrumCollectionByMsLevel(SpectrumCollectionHandlerInterface &handler, unsigned int ms_level) override
function to visit an MsRunReader and get each Spectrum in a spectrum collection handler by Ms Levels
 
virtual bool acquireDevice() override
acquire data back end device
 
virtual bool hasScanNumbers() const override
tells if spectra can be accessed using scan numbers by default, it returns false. Only overrided func...
 
virtual ~TimsMsRunReaderMs2()
 
virtual MassSpectrumCstSPtr massSpectrumCstSPtr(std::size_t spectrum_index) override
 
virtual bool accept(const QString &file_name) const override
tells if the reader is able to handle this file must be implemented by private MS run reader,...
 
virtual pappso::XicCoordSPtr newXicCoordSPtrFromQualifiedMassSpectrum(const pappso::QualifiedMassSpectrum &mass_spectrum, pappso::PrecisionPtr precision) const override
get a xic coordinate object from a given spectrum
 
A simple container of DataPoint instances.
 
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
 
@ filter
concerning filters (psm, peptide, protein validation)
 
std::shared_ptr< const MsRunId > MsRunIdCstSPtr
 
std::shared_ptr< TimsData > TimsDataSp
shared pointer on a TimsData object
 
std::shared_ptr< const MassSpectrum > MassSpectrumCstSPtr
 
std::shared_ptr< const FilterInterface > FilterInterfaceCstSPtr
 
const PrecisionBase * PrecisionPtr
 
std::shared_ptr< MassSpectrum > MassSpectrumSPtr
 
std::shared_ptr< XicCoordTims > XicCoordTimsSPtr
 
std::shared_ptr< XicCoord > XicCoordSPtr
 
std::size_t scanNumEnd
mobility index end
 
std::size_t scanNumBegin
mobility index begin
 
double rtTarget
the targeted retention time to extract around intended in seconds, and related to one msrun....
 
MzRange mzRange
the mass to extract