Learn R Programming

MineICA (version 1.12.0)

nbOccInComp_simple: nbOccInComp_simple

Description

For each feature/gene, this function returns the indices of the components they contribute to.

Usage

nbOccInComp_simple(icaSet, params, selectionByComp = NULL, level = c("features", "genes"))

Arguments

icaSet
An object of class IcaSet.
params
An object of class MineICAParams containing the parameters of the analysis. cutoffSel(params) is used as a threshold on the absolute projections to select the contributing features/genes.
selectionByComp
The list of components already restricted to the contributing features/genes (each element is a vector of projection values indexed by features or genes).
level
The attribute of icaSet to be used, the occurences of either the "features" (using S(icaSet)) or the "genes" (using SByGene(icaSet)) will be reported.

Value

Returns a data.frame whose columns are: gene the feature or gene IDs, nbOcc the number of components the gene contributes to, components the indices of those components.

Examples

Run this code
data(icaSetCarbayo)
params <- buildMineICAParams(resPath="carbayo/")
nbOcc <- MineICA:::nbOccInComp_simple(icaSet=icaSetCarbayo, params=params, level="genes")

Run the code above in your browser using DataLab