Learn R Programming

STATegRa (version 1.0.0)

getLoadings: Retrieve information about the loadings obtained using omicsCompAnalysis from an caClass-class

Description

Generic function to retrieve loadings (common and distinctive) obtained in the omicsCompAnalysis from an caClass-class

Usage

getLoadings(x, part=NULL, block=NULL)

Arguments

x
caClass-class object. If only this parameter is specified loadings for common and distinctive part are diplayed
part
Character indicating if loadings for "common" or "distinctive" part has to be displayed
block
Character indicating the block of data whose scores 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 loadings are displayed

Value

By default, a list with loadings associated to both parts (common and distinctive). If any parameter is specified, the selected information is displayed.

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)
getLoadings(res)
getLoadings(res, part="common", block="expr")
getLoadings(res, part="distinctive", block="expr")

Run the code above in your browser using DataLab