View source: R/remove_drivers.R
remove_drivers | R Documentation |
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.
remove_drivers(x, variantID, check = TRUE)
x |
A REVOLVER cohort. |
variantID |
Id of the driver event to remove. |
A modified cohort where the required events are no longer annotated as drivers.
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.