getDataSelectedFeatures: Select only data values from diablo features selected.

View source: R/mod_hypothesisGenerator_fct_NetworkInference.R

getDataSelectedFeaturesR Documentation

Select only data values from diablo features selected.

Description

Select only data values from diablo features selected.

Usage

getDataSelectedFeatures(matrixDataList, featureList = NULL)

Arguments

matrixDataList

A matrix list according to omic type with sample ID as columns and features as rows.

featureList

A features list for each omic type.

Value

A concatenated matrix of all omic selected features.

Examples

data("omic2", package = "multiSight")
splitData <- splitDatatoTrainTest(omic2, 0.8)
data.train <- splitData$data.train
data.test <- splitData$data.test

#diabloRes <- runSPLSDA(data.train)
data("diabloRes", package = "multiSight")
diabloModels <- diabloRes$model #sPLS-DA model using all omics.
diabloFeats <- diabloRes$biosignature #selected features for each omic.
omicMatrices <- getDataSelectedFeatures(omic2, diabloFeats)


Fjeanneret/multiSight documentation built on April 6, 2022, 7:59 a.m.