Learn R Programming

STATegRa (version 1.0.0)

getScores: Retrieve information about the scores obtained using omicsCompAnalysis from an caClass-class

Description

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

Usage

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

Arguments

x
caClass-class object. If only this parameter is specified scores for common and distinctive part are diplayed
part
Character indicating if scores 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 scores are displayed

Value

By default, a list with scores 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)
getScores(res)
getScores(res, part="common")
getScores(res, part="distinctive", block="expr")

Run the code above in your browser using DataLab