Learn R Programming

STATegRa (version 1.0.0)

getInitialData: Retrieve Initial data from caClass objects

Description

Generic function to retrieve the initial data used in a components analysis omicsCompAnalysis from an caClass-class object

Usage

getInitialData(x, block=NULL)

Arguments

x
caClass-class object. If only this parameter is specified all information about the preprocessing of the data, as well as the data after preprocessing is applied, is returned
block
Character indicating the block of data that has to be returned. It can be specified by using the position of the block ("1" or "2") or the name assigned to this block in the caClass-class object. If it is NULL both blocks are displayed

Value

It returns a list with the information indicated by the parameters. By default a list with the following components:
process
methods applied to preprocess the data
preproData
Preprocessed data

See Also

omicsCompAnalysis, caClass-class

Examples

Run this code
data("STATegRa_S3")
B1 <- createOmicsExpressionSet(Data=Block1.PCA, pData=ed.PCA,
                               pDataDescr=c("classname"))
B2 <- createOmicsExpressionSet(Data=Block2.PCA,
                               pData=ed.PCA, pDataDescr=c("classname"))
# Omics components analysis
res <- omicsCompAnalysis(Input=list(B1, B2), Names=c("expr", "mirna"),
                         method="DISCOSCA", Rcommon=2, Rspecific=c(2, 2),
                         center=TRUE, scale=TRUE, weight=TRUE)
getInitialData(res)
getInitialData(res, block="expr")

Run the code above in your browser using DataLab