spectralSigFeatures: Extract significant features from a MAIT object

Description Usage Arguments Value Author(s) See Also Examples

View source: R/spectralSigFeatures.R

Description

Function spectralSigFeatures takes a MAIT-class object and obtains which of the variables are significant given a p-value threshold. The parameters of the significant features can ve printed to an output table (TRUE by default). Depending on the number of classes in the data, the function chooses between using ANOVA tests through function spectralAnova, or T-Student tests by using function spectralTStudent.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
spectralSigFeatures(MAIT.object = NULL,
                    pvalue = 0.05,
                    p.adj = "none", 
                    printCSVfile = FALSE,
                    scale = FALSE,
                    parametric = TRUE,
                    var.equal = FALSE, 
                    test.fun = NULL,
                    jitter = FALSE,
                    jitter.factor = 1,
                    jitter.amount = 0, 
                    namefun = NULL)

Arguments

MAIT.object

A MAIT-class object where function peakAggregation has already been applied. The output of the function is going to be an update of the same MAIT-class object.

pvalue

P-value threshold. Variables having a p-value lower than this value is considered as a significant variable.

p.adj

Character with the name of the posthoc method to be applied to correct the pvalues. The supported methods are that of the p.adjust function

printCSVfile

Set to TRUE if an output table has to be produced. See function sigPeaksTable for more information.

scale

Set to FALSE by default. When set to TRUE, a unit variance scaling of the data when no peak aggregation is performed. If a peak aggregation method is applied, this parameter is ignored.

parametric

If it is set to TRUE, the statistical tests to be applied will be parametrical tests (e.g. ANOVA, TStudent or Welch's tests). Non-parametrical tests (e.g. Kruskal-Wallis, Mann-Whitney tests) are applied otherwise.

var.equal

Set to FALSE by default. When set to TRUE, a Student's T-Test is applyied when having 2 classes in the data. If it is set to FALSE, a Welch's test is applyied instead.

test.fun

Function of the user-defined posthoc method to be applyied.

jitter

If it is set to TRUE, a jitter noise is added to the data. This is useful when applying Mann-Whitney tests with ties.

jitter.factor

See argument factor of the function jitter.

jitter.amount

See argument amount of the function jitter.

namefun

Name of the user-defined posthoc test in the argument test.fun.

Value

A MAIT-class object containing the significant features of the scores slot of MAIT-class object used as an input.

Author(s)

Francesc Fernandez, francesc.fernandez.albert@upc.edu

See Also

MAIT-class spectralTStudent spectralAnova sigPeaksTable

Examples

1
2
data(MAIT_sample)
MAIT<-spectralSigFeatures(MAIT,p.adj="fdr",parametric=TRUE)

MAIT documentation built on Nov. 8, 2020, 5:43 p.m.