remove_drivers: Remove a list of driver events from the cohort.

View source: R/remove_drivers.R

remove_driversR Documentation

Remove a list of driver events from the cohort.

Description

Each event is identified through its id (variantID); with this function, you can remove a list of driver events, which consists in flagging them as FALSE in the is.Driver column of the data, and updating the information transfer. If you have fit the models or clustered the cohort, you should re-run the analyses after this modification; for this reason, any previous result from those analyses is cancelled from the returned object.

Notice also that some patients might be removed by this function, because if they have no longer drivers then they cannot be fit afterwards.

Usage

remove_drivers(x, variantID, check = TRUE)

Arguments

x

A REVOLVER cohort.

variantID

Id of the driver event to remove.

Value

A modified cohort where the required events are no longer annotated as drivers.

Examples

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

print(TRACERx_NEJM_2017_REVOLVER)

new_cohort = remove_drivers(TRACERx_NEJM_2017_REVOLVER, "MET")
print(new_cohort)

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