Select_Model_short_SC3: Using clustering results based on feature selection to...

Description Usage Arguments Value Examples

View source: R/Short_CV.R

Description

Using clustering results based on feature selection to perform model selection.

Usage

1
Select_Model_short_SC3(Y, cluster, tops = c(500, 1000, 2000))

Arguments

Y

A gene expression matrix

cluster

The initial cluster labels NA values are allowed. This can directly from the Consensus function.

tops

A numeric vector containing a list of numbers corresponding to top genes; e.g., tops = c(500, 1000, 2000).

Value

mse and the SC3 clustering result.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
data(Yan)
k = length(unique(trueclass))
Y = process_Y(Y, thre = 2) # preprocess the data
set.seed(123)
rixs = sample(nrow(Y), 500)
cixs = sample(ncol(Y), 40)
Y = Y[rixs, cixs]
con_res = Consensus(Y, k=k)
# not run
# mod_res = Select_Model_short_SC3(Y, cluster = con_res$cluster, top = c(100, 200))

suke18/FEAST documentation built on Sept. 14, 2021, 12:22 a.m.