alignSamples | R Documentation |
AlignSamples
performs alignment between samples (i.e. the matching of
variables between the peak lists within the ptrSet
object) by using a
kernel gaussian density (Delabriere et al, 2017).
This function returns an ExpressionSet
, which contains
the matrix of peak intensities, the sample metadata (borrowed from the
input ptrSet) and the variable metadata which contains the peak intensities in
the background.
Two filters may be applied to:
keep only variables with a significant higher intensity in the
expirations compared to the background (i.e., a p-value less than
pValGreaterThres
) for at least fracExp
keep only variables which are detected in more
than fracGroup
percent of the samples (or group
)
If you do not want to apply those filters, set fracGroup
to 0 and
pValGreaterThres
to 1.
alignSamples(
X,
ppmGroup = 70,
fracGroup = 0.8,
group = NULL,
fracExp = 0.3,
pValGreaterThres = 0.001,
pValLessThres = 0,
quantiUnit = c("ppb", "ncps", "cps")[1],
bgCorrected = FALSE,
dmzGroup = 0.001
)
## S4 method for signature 'ptrSet'
alignSamples(
X,
ppmGroup = 70,
fracGroup = 0.8,
group = NULL,
fracExp = 0.3,
pValGreaterThres = 0.001,
pValLessThres = 0,
quantiUnit = c("ppb", "ncps", "cps")[1],
bgCorrected = FALSE,
dmzGroup = 0.001
)
X |
ptrSet already processed by the |
ppmGroup |
ppm maximal width for an mz group |
fracGroup |
only variables present in |
group |
character: sampleMetadata data column name. If |
fracExp |
fraction of samples which must have their p-value less than
|
pValGreaterThres |
threshold of the p-value for the unilateral testing that quantification (in cps) of expiration points are greater than the intensities in the background. |
pValLessThres |
threshold of the p-value for the unilateral testing that quantification (in cps) of expiration points are less than the intensities of the background. |
quantiUnit |
ppb, ncps or cps |
bgCorrected |
logical: should the peak table contain the background corrected values? |
dmzGroup |
minimum mz width to be used for grouping the features (required for low masses) |
an ExpressionSet
(Biobase object)
Delabriere et al., 2017
library(ptairData)
dirRaw <- system.file("extdata/exhaledAir", package = "ptairData")
exhaledPtrset <- createPtrSet(dir=dirRaw,
setName="exhaledPtrset", mzCalibRef = c(21.022, 60.0525),
fracMaxTIC = 0.7, saveDir = NULL )
exhaledPtrset<-detectPeak(exhaledPtrset,mzNominal=c(21,60,79))
eset <- alignSamples(exhaledPtrset,pValGreaterThres=0.05,bgCorrected=TRUE)
Biobase::exprs(eset)
Biobase::fData(eset)
Biobase::pData(eset)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.