Stats_trees: Summary statistics for the cohort's trees.

View source: R/stats_functions.R

Stats_treesR Documentation

Summary statistics for the cohort's trees.

Description

Returns the statistics about the trees that are available in the cohort. The function can be run on a subset of patients.

Usage

Stats_trees(x, patients = x$patients)

Arguments

x

A REVOLVER cohort.

patients

The patients for which the summaries are computed.

Value

A tibble with the driver stastics.

See Also

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

Examples

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

# Get the stats for all patients
Stats_trees(TRACERx_NEJM_2017_REVOLVER)

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

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