get_classes-DownSamplingConsensusPartition-method: Get subgroup labels

get_classes-DownSamplingConsensusPartition-methodR Documentation

Get subgroup labels

Description

Get subgroup labels

Usage

## S4 method for signature 'DownSamplingConsensusPartition'
get_classes(object, k = object@k, p_cutoff = 0.05, reduce = FALSE)

Arguments

object

A DownSamplingConsensusPartition-class object.

k

Number of subgroups.

p_cutoff

Cutoff of p-values of class label prediction. It is only used when k is a vector.

reduce

Used internally.

Value

If k is a scalar, it returns a data frame with two columns:

  • the class labels

  • the p-value for the prediction of class labels.

If k is a vector, it returns a data frame of class labels for each k. The class label with prediction p-value > p_cutoff is set to NA.

Examples

data(golub_cola_ds)
get_classes(golub_cola_ds, k = 3)
get_classes(golub_cola_ds)

jokergoo/cola documentation built on Feb. 29, 2024, 1:41 a.m.