Cluster: Get REVOLVER clusters information for this cohort

View source: R/getter_functions.R

ClusterR Documentation

Get REVOLVER clusters information for this cohort

Description

For a set of 'patients' - all by default - extract the clustering information computed by REVOVLER. The result is just a tibble with a column representing the patient id, and a column with the cluster label.

Usage

Cluster(x, patients = x$patients)

Arguments

x

A REVOLVER cohort with fits and clusters.

patients

Patients to use, all by default.

Value

A tibble with the required clustering assignments

Examples

# Data released in the 'evoverse.datasets'
data('TRACERx_NEJM_2017_REVOLVER', package = 'evoverse.datasets')

Cluster(TRACERx_NEJM_2017_REVOLVER)

#' Cluster(TRACERx_NEJM_2017_REVOLVER, patients = c("CRUK0001", "CRUK0002"))

caravagn/revolver documentation built on May 21, 2022, 5:48 p.m.