Stats: Summary statistics for the cohort's patients.

View source: R/stats_functions.R

StatsR Documentation

Summary statistics for the cohort's patients.

Description

Returns the number of samples per patient, the number of drivers, the number of clonal and subclonal mutations etc. The function can be run on a subset of patients.

Usage

Stats(x, patients = x$patients)

Arguments

x

A REVOLVER cohort.

patients

The patients for which the summaries are computed.

Value

A tibble with summary stastics.

See Also

Other Summary statistics: DET_index(), Stats_cohort(), Stats_drivers(), Stats_fits(), Stats_trees()

Examples

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

# Get the stats for all patients
Stats(TRACERx_NEJM_2017_REVOLVER)

# And subset the patients
Stats(TRACERx_NEJM_2017_REVOLVER, patients = c('CRUK0001', 'CRUK0002'))

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