ptrvSignificantSNRIons: ptrvSignificantSNRIons

View source: R/ptrvSignificantSNRIons.r

ptrvSignificantSNRIonsR Documentation

ptrvSignificantSNRIons

Description

ptrvSignificantSNRIons

Usage

ptrvSignificantSNRIons(
  dataset,
  method = "max",
  referenceBreath,
  noisePeriod = c(0, 30),
  correction = "cycle",
  multiplyNoiseBy = 3,
  minimalDuration = 2,
  halfWindowSize = 5,
  smoothMethod = "MovingAverage",
  minExpi = NULL,
  maxInspi = NULL,
  forMinExpiDivideMaxIntBy = 5,
  forMaxInspiDivideMaxIntBy = 4,
  removeNoise = FALSE
)

Arguments

dataset

whose names are timeCol, Ion1,... ,Ionp.

method

"max" or "ttest" (TODO "tangente")

referenceBreath

name of the ion taken as reference for breathing

noisePeriod

vector with two numbers indicating the period corresponding to a blank period.

correction

"none" or "cycle". See Details.

multiplyNoiseBy

a number such as a ion whose maximal intensity during tasting/maximal intensity during blank period > multiplyNoiseBy is detected as significant (used for method=="max")

minimalDuration

minimalDuration of a breathing cycle (2 by default - as a accelerated breathing frequency corresponds to 20 cycles and more by minut and a low frequency is 12 and less -)

halfWindowSize

parameter used to determine the smooth for the peak-picking used in break detection

smoothMethod

NULL, "SavitzkyGolay" or "MovingAverage"

minExpi

minimal value for an expiry intensity to be detected as an expiry (blue dotted line in the plot).

maxInspi

maximal intensity of the original curve required to be considered as a breathing peak (purple dotted line in the plot)

forMinExpiDivideMaxIntBy

default to 5. When minExpi is null, it is evaluated as the ratio of the maximal intensity and forMinIntensityDivideMaxIntBy

forMaxInspiDivideMaxIntBy

default to 5. When minExpi is null, it is evaluated as the ratio of the maximal intensity and forMinIntensityDivideMaxIntBy

removeNoise

if TRUE, the noise is removed in the calculation of intensity by time


ChemoSens/PTRMSR documentation built on June 15, 2025, 10:40 a.m.