Home  · Classes  · Annotated Classes  · Modules  · Members  · Namespaces  · Related Pages
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes

ExtendedIsotopeModel Class Reference

Extended isotope distribution approximated using linear interpolation. More...

#include <OpenMS/TRANSFORMATIONS/FEATUREFINDER/ExtendedIsotopeModel.h>

Inheritance diagram for ExtendedIsotopeModel:
InterpolationModel BaseModel< 1 > DefaultParamHandler

List of all members.

Public Types

enum  Averagines {
  C = 0, H, N, O,
  S, AVERAGINE_NUM
}
typedef
InterpolationModel::CoordinateType 
CoordinateType
typedef
InterpolationModel::CoordinateType 
IntensityType

Public Member Functions

 ExtendedIsotopeModel ()
 Default constructor.
 ExtendedIsotopeModel (const ExtendedIsotopeModel &source)
 copy constructor
virtual ~ExtendedIsotopeModel ()
 destructor
virtual ExtendedIsotopeModeloperator= (const ExtendedIsotopeModel &source)
 assignment operator
UInt getCharge ()
void setOffset (CoordinateType offset)
 set the offset of the model
CoordinateType getOffset ()
void setSamples ()
 set sample/supporting points of interpolation
CoordinateType getCenter () const
 get the monoisotopic mass of the Isotope model

Static Public Member Functions

static BaseModel< 1 > * create ()
 create new ExtendedIsotopeModel object (needed by Factory)
static const String getProductName ()
 name of the model (needed by Factory)

Protected Member Functions

void updateMembers_ ()
 This method is used to update extra member variables at the end of the setParameters() method.

Protected Attributes

CoordinateType isotope_stdev_
UInt charge_
CoordinateType monoisotopic_mz_
DoubleReal averagine_ [AVERAGINE_NUM]
Int max_isotope_
DoubleReal trim_right_cutoff_
DoubleReal isotope_distance_

Detailed Description

Extended isotope distribution approximated using linear interpolation.

This models a smoothed (widened) distribution, i.e. can be used to sample actual raw peaks (depending on the points you query). If you only want the distribution (no widening), use either EmpiricalFormula::getIsotopeDistribution() // for a certain sum formula or IsotopeDistribution::estimateFromPeptideWeight (double average_weight) // for averagine

Peak widening is achieved by a Gaussian shape.

Parameters of this class are:

NameTypeDefaultRestrictionsDescription
cutoff float0  Low intensity cutoff of the model. Peaks below this intensity are not considered part of the model.
interpolation_step float0.1  Sampling rate for the interpolation of the model function
intensity_scaling float1  Scaling factor used to adjust the model distribution to the intensities of the data
charge int1  Charge state of the model.
averagines:C float0.0444398894906044  Number of C atoms per Dalton of mass.
averagines:H float0.0698157176375389  Number of H atoms per Dalton of mass.
averagines:N float0.0122177302837372  Number of N atoms per Dalton of mass.
averagines:O float0.0132939899340272  Number of O atoms per Dalton of mass.
averagines:S float0.000375250005163252  Number of S atoms per Dalton of mass.
isotope:trim_right_cutoff float0.001  Cutoff in averagine distribution, trailing isotopes below this relative intensity are not considered.
isotope:maximum int100  Maximum isotopic rank to be considered.
isotope:distance float1.000495  Distance between consecutive isotopic peaks.
isotope:stdev float0.1  Standard deviation of gaussian applied to the averagine isotopic pattern to simulate the inaccuracy of the mass spectrometer.
isotope:monoisotopic_mz float1  Monoisotopic m/z of the model.

Note:

Member Typedef Documentation


Member Enumeration Documentation

enum Averagines
Enumerator:
C 
H 
N 
O 
S 
AVERAGINE_NUM 

Constructor & Destructor Documentation

Default constructor.

ExtendedIsotopeModel ( const ExtendedIsotopeModel source  ) 

copy constructor

virtual ~ExtendedIsotopeModel (  )  [virtual]

destructor


Member Function Documentation

static BaseModel<1>* create (  )  [inline, static]

create new ExtendedIsotopeModel object (needed by Factory)

CoordinateType getCenter (  )  const [virtual]

get the monoisotopic mass of the Isotope model

Reimplemented from InterpolationModel.

UInt getCharge (  ) 
CoordinateType getOffset (  ) 
static const String getProductName (  )  [inline, static]

name of the model (needed by Factory)

Referenced by BaseModel< D >::registerChildren().

virtual ExtendedIsotopeModel& operator= ( const ExtendedIsotopeModel source  )  [virtual]

assignment operator

void setOffset ( CoordinateType  offset  ) 

set the offset of the model

The whole model will be shifted to the new offset without being computing all over. This leaves a discrepancy which is minor in small shifts (i.e. shifting by one or two standard deviations) but can get significant otherwise. In that case use setParameters() which enforces a recomputation of the model.

void setSamples (  )  [virtual]

set sample/supporting points of interpolation

Reimplemented from InterpolationModel.

void updateMembers_ (  )  [protected, virtual]

This method is used to update extra member variables at the end of the setParameters() method.

Also call it at the end of the derived classes' copy constructor and assignment operator.

The default implementation is empty.

Reimplemented from InterpolationModel.


Member Data Documentation

DoubleReal averagine_[AVERAGINE_NUM] [protected]
UInt charge_ [protected]
Int max_isotope_ [protected]

OpenMS / TOPP release 1.10.0 Documentation generated on Thu Mar 7 2013 09:42:56 using doxygen 1.7.1