OpenMS
Loading...
Searching...
No Matches
LightTransition Struct Reference

#include <OpenMS/OPENSWATHALGO/DATAACCESS/TransitionExperiment.h>

Collaboration diagram for LightTransition:
[legend]

Public Member Functions

bool getDecoy () const
 
void setDecoy (bool d)
 
std::string getFragmentType () const
 
void setFragmentType (const std::string &s)
 
std::string getAnnotation () const
 
int getProductChargeState () const
 
bool isProductChargeStateSet () const
 
bool isPrecursorImSet () const
 
std::string getNativeID () const
 
std::string getPeptideRef () const
 
std::string getCompoundRef () const
 
double getLibraryIntensity () const
 
void setLibraryIntensity (double l)
 
double getProductMZ () const
 
double getPrecursorMZ () const
 
double getPrecursorIM () const
 
void setDetectingTransition (bool d)
 
bool isDetectingTransition () const
 
void setQuantifyingTransition (bool q)
 
bool isQuantifyingTransition () const
 
void setIdentifyingTransition (bool i)
 
bool isIdentifyingTransition () const
 
bool operator== (const LightTransition &rhs) const
 Equality operator - compares transition_name (consistent with hash)
 
bool operator!= (const LightTransition &rhs) const
 

Public Attributes

std::string transition_name
 
std::string peptide_ref
 
double library_intensity {}
 
double product_mz {}
 
double precursor_mz {}
 
double precursor_im {-1}
 
int8_t fragment_charge {}
 Fragment charge (compact: range typically 1-8)
 
TransitionFlags flags {}
 Packed boolean flags.
 
int16_t fragment_nr {-1}
 Fragment ion ordinal (e.g. 7 for y7)
 
FragmentIonType fragment_type {FragmentIonType::Empty}
 Fragment ion type enum.
 
std::vector< std::string > peptidoforms
 Peptidoforms for IPF.
 

Member Function Documentation

◆ getAnnotation()

std::string getAnnotation ( ) const
inline

Reconstruct annotation from fragment_type, fragment_nr, and fragment_charge Returns string like "b8", "y6^2", "prec", or empty if no fragment info set

References OpenSwath::Empty, LightTransition::fragment_charge, LightTransition::fragment_nr, LightTransition::fragment_type, OpenSwath::fragmentIonTypeToString(), and OpenSwath::Precursor.

◆ getCompoundRef()

std::string getCompoundRef ( ) const
inline

◆ getDecoy()

bool getDecoy ( ) const
inline

◆ getFragmentType()

std::string getFragmentType ( ) const
inline

◆ getLibraryIntensity()

double getLibraryIntensity ( ) const
inline

◆ getNativeID()

std::string getNativeID ( ) const
inline

◆ getPeptideRef()

std::string getPeptideRef ( ) const
inline

◆ getPrecursorIM()

double getPrecursorIM ( ) const
inline

◆ getPrecursorMZ()

double getPrecursorMZ ( ) const
inline

◆ getProductChargeState()

int getProductChargeState ( ) const
inline

◆ getProductMZ()

double getProductMZ ( ) const
inline

◆ isDetectingTransition()

bool isDetectingTransition ( ) const
inline

◆ isIdentifyingTransition()

bool isIdentifyingTransition ( ) const
inline

◆ isPrecursorImSet()

bool isPrecursorImSet ( ) const
inline

◆ isProductChargeStateSet()

bool isProductChargeStateSet ( ) const
inline

◆ isQuantifyingTransition()

bool isQuantifyingTransition ( ) const
inline

◆ operator!=()

bool operator!= ( const LightTransition rhs) const
inline

◆ operator==()

bool operator== ( const LightTransition rhs) const
inline

Equality operator - compares transition_name (consistent with hash)

References LightTransition::transition_name.

◆ setDecoy()

void setDecoy ( bool  d)
inline

◆ setDetectingTransition()

void setDetectingTransition ( bool  d)
inline

◆ setFragmentType()

void setFragmentType ( const std::string &  s)
inline

◆ setIdentifyingTransition()

void setIdentifyingTransition ( bool  i)
inline

◆ setLibraryIntensity()

void setLibraryIntensity ( double  l)
inline

◆ setQuantifyingTransition()

void setQuantifyingTransition ( bool  q)
inline

Member Data Documentation

◆ flags

◆ fragment_charge

int8_t fragment_charge {}

◆ fragment_nr

int16_t fragment_nr {-1}

Fragment ion ordinal (e.g. 7 for y7)

Referenced by LightTransition::getAnnotation().

◆ fragment_type

◆ library_intensity

double library_intensity {}

◆ peptide_ref

std::string peptide_ref

◆ peptidoforms

std::vector<std::string> peptidoforms

Peptidoforms for IPF.

◆ precursor_im

double precursor_im {-1}

◆ precursor_mz

double precursor_mz {}

◆ product_mz

double product_mz {}

◆ transition_name

std::string transition_name