libpappsomspp
Library for mass spectrometry
Loading...
Searching...
No Matches
FilterMs1WindowSelection Class Reference

try to detect complementary ions and assign maximum intensity of both elements More...

#include <filterms1windowselection.h>

Inheritance diagram for FilterMs1WindowSelection:
pappso::FilterInterface

Public Member Functions

 FilterMs1WindowSelection (const pappso::cbor::mzcbor::QcborSpectrumPrecursor &precursor)
 FilterMs1WindowSelection (const FilterMs1WindowSelection &other)
virtual ~FilterMs1WindowSelection ()
pappso::Trace & filter (pappso::Trace &data_points) const override
Public Member Functions inherited from pappso::FilterInterface
virtual ~FilterInterface ()

Private Attributes

double m_targetMz = 0
double m_lowerMz = 0
double m_upperMz = 0

Detailed Description

try to detect complementary ions and assign maximum intensity of both elements

experimental filter

Definition at line 44 of file filterms1windowselection.h.

Constructor & Destructor Documentation

◆ FilterMs1WindowSelection() [1/2]

FilterMs1WindowSelection::FilterMs1WindowSelection ( const pappso::cbor::mzcbor::QcborSpectrumPrecursor & precursor)
Parameters
target_mzthe targeted mass of the peak pair
precision_ptrmatching precision

Definition at line 36 of file filterms1windowselection.cpp.

38{
39 qDebug();
40 pappso::cbor::mzcbor::IsolationWindow isolation_window = precursor.getIsolationWindow();
41 m_targetMz = isolation_window.getTargetMz();
42 m_lowerMz = isolation_window.getLowerMz();
43 m_upperMz = isolation_window.getUpperMz();
44
45
46 if((m_upperMz == 0) || (m_lowerMz == 0))
47 {
48 throw pappso::ExceptionNotPossible(
49 QObject::tr("ERROR: unable to find isolation Window in precursor"));
50 }
51}
double getUpperMz() const
compute isolation window upper m/z given cvParam informations
double getLowerMz() const
compute isolation window lower m/z given cvParam informations
double getTargetMz() const
get isolation window target m/z given cvParam informations
Definition precursor.cpp:86

References pappso::cbor::mzcbor::QcborSpectrumPrecursor::getIsolationWindow(), pappso::cbor::mzcbor::IsolationWindow::getLowerMz(), pappso::cbor::mzcbor::IsolationWindow::getTargetMz(), pappso::cbor::mzcbor::IsolationWindow::getUpperMz(), m_lowerMz, m_targetMz, and m_upperMz.

Referenced by FilterMs1WindowSelection().

◆ FilterMs1WindowSelection() [2/2]

FilterMs1WindowSelection::FilterMs1WindowSelection ( const FilterMs1WindowSelection & other)

Copy constructor

Parameters
otherTODO

Definition at line 53 of file filterms1windowselection.cpp.

55{
56}

References FilterMs1WindowSelection(), m_lowerMz, m_targetMz, and m_upperMz.

◆ ~FilterMs1WindowSelection()

FilterMs1WindowSelection::~FilterMs1WindowSelection ( )
virtual

Destructor

Definition at line 61 of file filterms1windowselection.cpp.

62{
63}

Member Function Documentation

◆ filter()

pappso::Trace & FilterMs1WindowSelection::filter ( pappso::Trace & data_points) const
overridevirtual

Implements pappso::FilterInterface.

Definition at line 67 of file filterms1windowselection.cpp.

68{
69 pappso::FilterResampleKeepSmaller(m_upperMz).filter(data_points);
70 pappso::FilterResampleKeepGreater(m_lowerMz).filter(data_points);
71 return data_points;
72}

References pappso::FilterResampleKeepGreater::filter(), pappso::FilterResampleKeepSmaller::filter(), m_lowerMz, and m_upperMz.

Referenced by pappso::cbor::mzcbor::MzcborPrecursorFinder::findPotentialPrecursorIonData().

Member Data Documentation

◆ m_lowerMz

double FilterMs1WindowSelection::m_lowerMz = 0
private

◆ m_targetMz

double FilterMs1WindowSelection::m_targetMz = 0
private

◆ m_upperMz

double FilterMs1WindowSelection::m_upperMz = 0
private

The documentation for this class was generated from the following files: