Learn R Programming

STATegRa (version 1.0.0)

getPreprocessing: Retrieve information about the preprocessing done in omicsCompAnalysis from an caClass-class

Description

Generic function to retrieve information about preprocessing done in omicsCompAnalysis from an caClass-class

Usage

getPreprocessing(x, process=FALSE, preproData=FALSE, block=NULL)

Arguments

x
caClass-class object. If only this parameter is specified loadings for common and distinctive part are diplayed
process
Logical indicating whether to return information about the processing done. Defaults to FALSE.
preproData
Logical indicating whether to return the pre-processed data matrices. Defaults to FALSE.
block
Character indicating the block of data whose pre-processed state has to be returned, if preproData=TRUE. 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

If process and preproData are both requested, a list containing:
process
methods applied to preprocess the data
preproData
Preprocessed data (either a single block or a list of blocks)
Otherwise, either a character vector for process or either a matrix or list of matrices for preproData, depending on block.

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)
getPreprocessing(res, process=TRUE)
getPreprocessing(res, preproData=TRUE, block="1")

Run the code above in your browser using DataLab