View source: R/revolver_cohort.R
| revolver_cohort | R Documentation |
Construct a REVOLVER cohort.
revolver_cohort( dataset, CCF_parser = revolver::CCF_parser, ONLY.DRIVER = FALSE, MIN.CLUSTER.SIZE = 10, annotation = "My REVOLVER dataset" )
dataset |
A dataframe in the specified format (see the package vignettes). |
CCF_parser |
A function to parse the format for the encoding of CCF
or binary values for each sequenced region. A possible function is available
inside REVOLVER; |
ONLY.DRIVER |
If true, uses only annotated driver events. |
MIN.CLUSTER.SIZE |
Discard clusters that have less than this number of entries. |
annotation |
Brief cohort description. |
An object of the S3 class "rev_cohort" that represents a REVOLVER cohort.
Other Cohort creation:
CCF_parser(),
compute_clone_trees(),
compute_mutation_trees(),
input_custom_trees(),
revolver_check_cohort()
# Example cohort creation with the TRACERx data
data(TRACERx_data)
# To speed up the process we use only 2 patients
TRACERx_data = TRACERx_data %>%
filter(patientID %in% c('CRUK0001', 'CRUK0002'))
cohort = revolver_cohort(TRACERx_data, annotation = 'A toy REVOLVER dataset')
# The S3 print/ plot for this cohort
print(cohort)
plot(cohort)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.