CycloBranch
cChromatogramWindowWidget.h File Reference

Chromatogram window widget. More...

#include <QWidget>
#include <QGraphicsView>
#include <QGraphicsSimpleTextItem>
#include <QScrollBar>
#include <QMessageBox>
#include <QPrinter>
#include <QSvgGenerator>
#include <QImage>
#include <QMouseEvent>
#include <QProgressDialog>
#include "core/utilities.h"
#include "core/cTheoreticalSpectrumList.h"
#include "gui/cEventFilter.h"
#include "gui/cPatternSimulatorSceneWidget.h"

Go to the source code of this file.

Classes

class  cChromatogramWindowWidget
 Chromatogram window widget. More...
 

Functions

double getGaussianArea (double sigma, double height)
 Get area under Gaussian function. More...
 
double getGaussianAreas (vector< double > &sigmas, vector< double > &heights)
 Get area of EIC peaks (Gaussian function). More...
 
double getExponentiallyModifiedGaussianArea (double x, double h, double ny, double sigma, double tau, bool fronting)
 Get area under Exponentially Modified Gaussian function. More...
 
double getExponentiallyModifiedGaussianAreas (vector< double > &xvalues, vector< double > &heights, vector< double > &nys, vector< double > &sigmas, vector< double > &taus, bool fronting)
 Get area of EIC peaks (Exponentially Modified Gaussian function). More...
 
double erfcx (double z)
 Calculate erfcx(z). More...
 
double erfcxinv (double z)
 Calculate erfcxinv(z). More...
 
double computeExponentiallyModifiedGaussFunction (double x, double h, double ny, double sigma, double tau, bool fronting)
 Compute value of exponentially modified Gaussian function. More...
 
double computeExponentialFunction (double x, double base, double tau, bool fronting)
 Compute value of exponential function. More...
 
void calculateCaruana (vector< double > &x, vector< double > &y, double &ny, double &sigma, double &height)
 Calculate ny, sigma, and height using Caruana's algorithm. More...
 
void calculateGuo (vector< double > &x, vector< double > &y, int iterations, double &ny, double &sigma, double &height)
 Calculate ny, sigma, and height using Guo's algorithm. More...
 
void calculateBaseTau (vector< double > &x, vector< double > &y, int iterations, bool fronting, double ynorm, double &base, double &tau)
 Calculate base and tau for exponential distribution. More...
 
void calculateTauUsingWeightedAverage (vector< double > &x, vector< double > &y, bool fronting, double &tau)
 Calculate tau for exponential distribution using weighted average. More...
 
void calculateGaussianParameters (cPeaksList &eicchromatogram, vector< double > &rtimes, int timeunit, bool absoluteintensity, bool usert, vector< double > &nys, vector< double > &sigmas, vector< double > &as)
 Get parameters of Gaussians functions (nys, sigmas, and heights). More...
 
void calculateExponentialParameters (cPeaksList &eicchromatogram, vector< double > &rtimes, int timeunit, bool absoluteintensity, bool usert, bool fronting, double ynorm, vector< double > &bases, vector< double > &taus)
 Get parameters of Exponential functions (bases and taus). More...
 

Detailed Description

Chromatogram window widget.

Function Documentation

◆ calculateBaseTau()

void calculateBaseTau ( vector< double > &  x,
vector< double > &  y,
int  iterations,
bool  fronting,
double  ynorm,
double &  base,
double &  tau 
)

Calculate base and tau for exponential distribution.

Parameters
xinput vector of x-coordinates
yinput vector of y-coordinates
iterationsnumber of iterations
frontingtrue = fronting enabled, false = tailing enabled
ynormy axis normalization value
baseoutput value of base
tauoutput value of tau

◆ calculateCaruana()

void calculateCaruana ( vector< double > &  x,
vector< double > &  y,
double &  ny,
double &  sigma,
double &  height 
)

Calculate ny, sigma, and height using Caruana's algorithm.

Parameters
xinput vector of x-coordinates
yinput vector of y-coordinates
nyoutput value of ny
sigmaoutput value of sigma
heightoutput value of height

◆ calculateExponentialParameters()

void calculateExponentialParameters ( cPeaksList eicchromatogram,
vector< double > &  rtimes,
int  timeunit,
bool  absoluteintensity,
bool  usert,
bool  fronting,
double  ynorm,
vector< double > &  bases,
vector< double > &  taus 
)

Get parameters of Exponential functions (bases and taus).

Parameters
eicchromatograminput EIC chromatogram
rtimesinput retention time vector
timeunitRT time unit
absoluteintensityuse absolute intensities
usertuse RT instead of scan ids
frontingtrue = fronting enabled, false = tailing enabled
ynormy axis normalization value
basesoutput vector of bases
tausoutput vector of taus

◆ calculateGaussianParameters()

void calculateGaussianParameters ( cPeaksList eicchromatogram,
vector< double > &  rtimes,
int  timeunit,
bool  absoluteintensity,
bool  usert,
vector< double > &  nys,
vector< double > &  sigmas,
vector< double > &  as 
)

Get parameters of Gaussians functions (nys, sigmas, and heights).

Parameters
eicchromatograminput EIC chromatogram
rtimesinput retention time vector
timeunitRT time unit
absoluteintensityuse absolute intensities
usertuse RT instead of scan ids
nysoutput vector of nys
sigmasoutput vector of sigmas
asoutput vector of heights

◆ calculateGuo()

void calculateGuo ( vector< double > &  x,
vector< double > &  y,
int  iterations,
double &  ny,
double &  sigma,
double &  height 
)

Calculate ny, sigma, and height using Guo's algorithm.

Parameters
xinput vector of x-coordinates
yinput vector of y-coordinates
iterationsnumber of iterations
nyoutput value of ny
sigmaoutput value of sigma
heightoutput value of height

◆ calculateTauUsingWeightedAverage()

void calculateTauUsingWeightedAverage ( vector< double > &  x,
vector< double > &  y,
bool  fronting,
double &  tau 
)

Calculate tau for exponential distribution using weighted average.

Parameters
xinput vector of x-coordinates
yinput vector of y-coordinates
frontingtrue = fronting enabled, false = tailing enabled
tauoutput value of tau

◆ computeExponentialFunction()

double computeExponentialFunction ( double  x,
double  base,
double  tau,
bool  fronting 
)

Compute value of exponential function.

Parameters
xx
basebase
tautau
frontingtrue = fronting enabled, false = tailing enabled
Return values
doublef(x)

◆ computeExponentiallyModifiedGaussFunction()

double computeExponentiallyModifiedGaussFunction ( double  x,
double  h,
double  ny,
double  sigma,
double  tau,
bool  fronting 
)

Compute value of exponentially modified Gaussian function.

Parameters
xx
hh
nyny
sigmasigma
tautau
frontingtrue = fronting enabled, false = tailing enabled
Return values
doublef(x)

◆ erfcx()

double erfcx ( double  z)

Calculate erfcx(z).

Parameters
zinput value
Return values
erfcx(z)

◆ erfcxinv()

double erfcxinv ( double  z)

Calculate erfcxinv(z).

Parameters
zinput value
Return values
erfcxinv(z)

◆ getExponentiallyModifiedGaussianArea()

double getExponentiallyModifiedGaussianArea ( double  x,
double  h,
double  ny,
double  sigma,
double  tau,
bool  fronting 
)

Get area under Exponentially Modified Gaussian function.

Parameters
xsome value of x
hheight of Gaussian
nyny of Gaussian
sigmasigma of Gaussian
tautau of Exponential
frontingtrue = fronting enabled, false = tailing enabled
Return values
doublearea

◆ getExponentiallyModifiedGaussianAreas()

double getExponentiallyModifiedGaussianAreas ( vector< double > &  xvalues,
vector< double > &  heights,
vector< double > &  nys,
vector< double > &  sigmas,
vector< double > &  taus,
bool  fronting 
)

Get area of EIC peaks (Exponentially Modified Gaussian function).

Parameters
xvaluesvector of x values
heightsvector of heights of Gaussians
nysvector of nys of Gaussians
sigmasvector of sigmas of Gaussians
tausvector of taus of Exponentials
frontingtrue = fronting enabled, false = tailing enabled
Return values
doublearea

◆ getGaussianArea()

double getGaussianArea ( double  sigma,
double  height 
)

Get area under Gaussian function.

Parameters
sigmasigma
heightheight
Return values
doublearea

◆ getGaussianAreas()

double getGaussianAreas ( vector< double > &  sigmas,
vector< double > &  heights 
)

Get area of EIC peaks (Gaussian function).

Parameters
sigmasinput vector of sigmas
heightsinput vector of heights
Return values
doublearea