classic1wayAnova: Function to perform a One-way Anova statistical test on a...

View source: R/anova_analysis.R

classic1wayAnovaR Documentation

Function to perform a One-way Anova statistical test on a MsnBase dataset

Description

Function to perform a One-way Anova statistical test on a MsnBase dataset

Usage

classic1wayAnova(current_line, conditions)

Arguments

current_line

The line currently treated from the quantitative data to perform the ANOVA

conditions

The conditions represent the different classes of the studied factor

Value

A named vector containing all the different values of the aov model

Author(s)

Hélène Borges

Examples

utils::data(Exp1_R25_prot, package='DAPARdata')
obj <- Exp1_R25_prot[1:1000]
level <- obj@experimentData@other$typeOfData
metacell.mask <- match.metacell(GetMetacell(obj), 'missing', level)
indices <- GetIndices_WholeMatrix(metacell.mask, op='>=', th=1)
obj <- MetaCellFiltering(obj, indices, cmd='delete')
anova_tests <- t(apply(Biobase::exprs(obj$new), 1, classic1wayAnova, 
conditions=as.factor(Biobase::pData(obj$new)$Condition)))


samWieczorek/DAPAR documentation built on May 6, 2022, 5:30 p.m.