View source: R/mod_MLmodels_utils.R
buildFeatTable | R Documentation |
To build detailed feature tables outputs for selected ones by machine learning models. Relative mean values by label class then log2FoldChange and p.adj values if DESeq2 have been computed are indicated.
buildFeatTable(featVec, omicBlock, Y, deTable = NULL)
featVec |
Selected features vector of one omic dataset. |
omicBlock |
Omic dataset of selected features. |
Y |
Omic sample classes. |
deTable |
(optional) Deseq2 results table for an omic dataset. |
Returns table of features selected by classification model and relative values.
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. diabloFeatTable <- buildFeatTable(diabloFeats[[1]], omic2[[1]], omic2$Y) diabloFeatTable
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.