revolver_check_cohort: Check basic inconsistencies in a REVOLVER cohort.

View source: R/revolver_check_cohort.R

revolver_check_cohortR Documentation

Check basic inconsistencies in a REVOLVER cohort.

Description

Perform some basic diagnostic of a cohort object. It will inform of patients without drivers and other information that can be used to reshape the data before fitting a model.

Usage

revolver_check_cohort(x, stopOnError = FALSE)

Arguments

x

A REVOLVER cohort.

stopOnError

Whether or not it should raise a stop on error.

Value

Nothing, all relevant information are print to screen and the stop is raised only if stopOnError = TRUE.

See Also

Other Cohort creation: CCF_parser(), compute_clone_trees(), compute_mutation_trees(), input_custom_trees(), revolver_cohort()

Examples

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

revolver_check_cohort(TRACERx_NEJM_2017_REVOLVER)

print(TRACERx_NEJM_2017_REVOLVER) # calls this anyway

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