![]() |
OpenMS
|
A class representing a deconvolved spectrum. DeconvolvedSpectrum consists of PeakGroup instances representing masses. For MSn n>1, a PeakGroup representing the precursor mass is also added in this class. Properly assigning a precursor mass from the original precursor peak and its deconvolution result is very important in top down proteomics. This assignment is performed here for conventional acquired datasets. But for FLASHIda acquired datasets, the assignment is already done by FLASHIda. So this class simply use the results from FLASHIda log file for assignment. The parsing of FLASHIda log file is done in FLASHDeconv tool class. More...
#include <OpenMS/ANALYSIS/TOPDOWN/DeconvolvedSpectrum.h>
Public Types | |
| typedef FLASHHelperClasses::LogMzPeak | LogMzPeak |
Public Member Functions | |
| DeconvolvedSpectrum ()=default | |
| default constructor More... | |
| DeconvolvedSpectrum (int scan_number) | |
| Constructor for DeconvolvedSpectrum. Takes the spectrum and scan number calculated from outside. More... | |
| ~DeconvolvedSpectrum ()=default | |
| default destructor More... | |
| DeconvolvedSpectrum (const DeconvolvedSpectrum &)=default | |
| copy constructor More... | |
| DeconvolvedSpectrum (DeconvolvedSpectrum &&other) noexcept=default | |
| move constructor More... | |
| DeconvolvedSpectrum & | operator= (const DeconvolvedSpectrum &deconvolved_spectrum)=default |
| assignment operator More... | |
| MSSpectrum | toSpectrum (int to_charge, double tol=10.0, bool retain_undeconvolved=false) |
| const MSSpectrum & | getOriginalSpectrum () const |
| original spectrum getter More... | |
| const PeakGroup & | getPrecursorPeakGroup () const |
| get precursor peak group for MSn (n>1) spectrum. It returns an empty peak group if no peak group is registered (by registerPrecursor) More... | |
| int | getPrecursorCharge () const |
| precursor charge getter (set in registerPrecursor) More... | |
| const Precursor & | getPrecursor () const |
| get precursor peak More... | |
| double | getCurrentMaxMass (double max_mass) const |
| double | getCurrentMinMass (double min_mass) const |
| int | getCurrentMaxAbsCharge (int max_abs_charge) const |
| int | getScanNumber () const |
| get scan number of the original spectrum More... | |
| int | getPrecursorScanNumber () const |
| get precursor scan number - only if it is registered. Otherwise return 0 More... | |
| const Precursor::ActivationMethod & | getActivationMethod () const |
| get activation method More... | |
| FLASHHelperClasses::IsobaricQuantities | getQuantities () const |
| return isobaric quantities More... | |
| void | setQuantities (const FLASHHelperClasses::IsobaricQuantities &quantities) |
| set isobaric quantities More... | |
| void | setPrecursor (const Precursor &precursor) |
| set precursor for MSn for n>1 More... | |
| void | setPrecursorScanNumber (int scan_number) |
| set precursor scan number More... | |
| void | setActivationMethod (const Precursor::ActivationMethod &method) |
| set activation method More... | |
| void | setPrecursorPeakGroup (const PeakGroup &pg) |
| set precursor peakGroup More... | |
| void | setOriginalSpectrum (const MSSpectrum &spec) |
| original spectrum setter More... | |
| void | setPeakGroups (std::vector< PeakGroup > &x) |
| set peak groups in this spectrum More... | |
| std::vector< PeakGroup >::const_iterator | begin () const noexcept |
| iterators and vector operators for std::vector<PeakGroup> peak_groups_ in this spectrum More... | |
| std::vector< PeakGroup >::const_iterator | end () const noexcept |
| std::vector< PeakGroup >::iterator | begin () noexcept |
| std::vector< PeakGroup >::iterator | end () noexcept |
| const PeakGroup & | operator[] (Size i) const |
| PeakGroup vector functions and operators. More... | |
| PeakGroup & | operator[] (Size i) |
| void | push_back (const PeakGroup &pg) |
| void | emplace_back (const PeakGroup &pg) |
| void | pop_back () |
| PeakGroup & | back () |
| Size | size () const noexcept |
| void | clear () |
| void | reserve (Size n) |
| bool | empty () const |
| bool | isDecoy () const |
| void | sort () |
| sort by deconvolved monoisotopic masses More... | |
| void | sortByQscore () |
| sort by Qscore of peakGroups More... | |
| bool | operator< (const DeconvolvedSpectrum &a) const |
| comparison operators More... | |
| bool | operator> (const DeconvolvedSpectrum &a) const |
| bool | operator== (const DeconvolvedSpectrum &a) const |
Private Attributes | |
| std::vector< PeakGroup > | peak_groups_ |
| peak groups (deconvolved masses) More... | |
| MSSpectrum | spec_ |
| the original raw spectrum (not deconvolved) More... | |
| PeakGroup | precursor_peak_group_ |
| precursor peakGroup (or mass) More... | |
| Precursor | precursor_peak_ |
| precursor raw peak (not deconvolved one) More... | |
| Precursor::ActivationMethod | activation_method_ = Precursor::ActivationMethod::CID |
| activation method for file output More... | |
| int | scan_number_ = 0 |
| scan number and precursor scan number More... | |
| int | precursor_scan_number_ = 0 |
| FLASHHelperClasses::IsobaricQuantities | quantities_ |
| isobaric quantities More... | |
A class representing a deconvolved spectrum. DeconvolvedSpectrum consists of PeakGroup instances representing masses. For MSn n>1, a PeakGroup representing the precursor mass is also added in this class. Properly assigning a precursor mass from the original precursor peak and its deconvolution result is very important in top down proteomics. This assignment is performed here for conventional acquired datasets. But for FLASHIda acquired datasets, the assignment is already done by FLASHIda. So this class simply use the results from FLASHIda log file for assignment. The parsing of FLASHIda log file is done in FLASHDeconv tool class.
|
default |
default constructor
|
explicit |
Constructor for DeconvolvedSpectrum. Takes the spectrum and scan number calculated from outside.
| scan_number | scan number of the spectrum |
|
default |
default destructor
|
default |
copy constructor
|
defaultnoexcept |
move constructor
| PeakGroup& back | ( | ) |
|
noexcept |
iterators and vector operators for std::vector<PeakGroup> peak_groups_ in this spectrum
|
noexcept |
| void clear | ( | ) |
| void emplace_back | ( | const PeakGroup & | pg | ) |
| bool empty | ( | ) | const |
|
noexcept |
|
noexcept |
| const Precursor::ActivationMethod& getActivationMethod | ( | ) | const |
get activation method
| int getCurrentMaxAbsCharge | ( | int | max_abs_charge | ) | const |
get possible max charge of the deconvolved masses - for MS1, max charge specified by user for MSn, min value between max charge specified by the user and precursor charge
| max_abs_charge | the max absolute value of the charge specified by the user |
| double getCurrentMaxMass | ( | double | max_mass | ) | const |
get possible max mass of the deconvolved masses - for MS1, max mass specified by user for MSn, min value between max mass specified by the user and precursor mass
| max_mass | the max mass specified by the user |
| double getCurrentMinMass | ( | double | min_mass | ) | const |
get possible min mass of the deconvolved masses - for MS1, min mass specified by user for MSn, 50.0
| min_mass | the min mass specified by the user |
| const MSSpectrum& getOriginalSpectrum | ( | ) | const |
original spectrum getter
| const Precursor& getPrecursor | ( | ) | const |
get precursor peak
| int getPrecursorCharge | ( | ) | const |
precursor charge getter (set in registerPrecursor)
| const PeakGroup& getPrecursorPeakGroup | ( | ) | const |
get precursor peak group for MSn (n>1) spectrum. It returns an empty peak group if no peak group is registered (by registerPrecursor)
| int getPrecursorScanNumber | ( | ) | const |
get precursor scan number - only if it is registered. Otherwise return 0
| FLASHHelperClasses::IsobaricQuantities getQuantities | ( | ) | const |
return isobaric quantities
| int getScanNumber | ( | ) | const |
get scan number of the original spectrum
| bool isDecoy | ( | ) | const |
| bool operator< | ( | const DeconvolvedSpectrum & | a | ) | const |
comparison operators
|
default |
assignment operator
| bool operator== | ( | const DeconvolvedSpectrum & | a | ) | const |
| bool operator> | ( | const DeconvolvedSpectrum & | a | ) | const |
| void pop_back | ( | ) |
| void push_back | ( | const PeakGroup & | pg | ) |
| void reserve | ( | Size | n | ) |
| void setActivationMethod | ( | const Precursor::ActivationMethod & | method | ) |
set activation method
| void setOriginalSpectrum | ( | const MSSpectrum & | spec | ) |
original spectrum setter
| void setPeakGroups | ( | std::vector< PeakGroup > & | x | ) |
set peak groups in this spectrum
| void setPrecursor | ( | const Precursor & | precursor | ) |
set precursor for MSn for n>1
| void setPrecursorPeakGroup | ( | const PeakGroup & | pg | ) |
set precursor peakGroup
| void setPrecursorScanNumber | ( | int | scan_number | ) |
set precursor scan number
| void setQuantities | ( | const FLASHHelperClasses::IsobaricQuantities & | quantities | ) |
set isobaric quantities
|
noexcept |
| void sort | ( | ) |
sort by deconvolved monoisotopic masses
| void sortByQscore | ( | ) |
sort by Qscore of peakGroups
| MSSpectrum toSpectrum | ( | int | to_charge, |
| double | tol = 10.0, |
||
| bool | retain_undeconvolved = false |
||
| ) |
Convert DeconvolvedSpectrum to MSSpectrum (e.g., used to store in mzML format).
| to_charge | the charge of each peak in mzml output. |
| tol | the ppm tolerance |
| retain_undeconvolved | if set, undeconvolved peaks in the original peaks are output (assuming their abs charge == 1 and m/zs are adjusted with the to_charge parameter) |
|
private |
activation method for file output
|
private |
peak groups (deconvolved masses)
|
private |
precursor raw peak (not deconvolved one)
|
private |
precursor peakGroup (or mass)
|
private |
|
private |
isobaric quantities
|
private |
scan number and precursor scan number
|
private |
the original raw spectrum (not deconvolved)