elementObjectMA: Creation of the object to use in meta-analysis

View source: R/elementObjectMA.R

elementObjectMAR Documentation

Creation of the object to use in meta-analysis

Description

It allows the creation of a element of the object needed to perform meta-analysis

Usage

elementObjectMA(
    expressionMatrix,
    pheno = NULL,
    groupPheno,
    expGroup = 1,
    refGroup = 2
)

Arguments

expressionMatrix

A dataframe or matrix that contanining genes in rows and samples if columns. An ExpressionSet object can be used too.

pheno

A data frame or a matrix containing samples in rows and covariates in columns. If NULL (default), pheno is extracted from the ExpressionSet object

groupPheno

The column name or position from pheno where experimental group (cases) and reference group (control) are identified

expGroup

The group name or position from groupPheno variable used as experimental group (cases). By default the first group (character) is taken

refGroup

The group name or position from groupPheno variable used as reference group (control). By default the second group (character) is taken

Value

An element that can be included in meta-analysis object.

Author(s)

Juan Antonio Villatoro Garcia, juanantoniovillatorogarcia@gmail.com

See Also

createObjectMA

Examples

data(DExMAExampleData)

ExpressionSetStudy5
newElem <-elementObjectMA(expressionMatrix = ExpressionSetStudy5,
                            groupPheno = "condition",
                            expGroup = c("Diseased", "ill"),
                            refGroup = c("Healthy", "control"))

Juananvg/DExMA documentation built on Dec. 5, 2023, 1:12 p.m.