View source: R/getter_functions.R
Phylo | R Documentation |
From a cohort object, this function extracts the tree
objects that are available for a patient. Parameters
can be set to retrieve a particular tree, or the fit
tree which is however availble only after fitting the
cohort data. This function can either return a
phylogenetic clone tree (R object ctree
), or mutation
trees (R object btree
).
Phylo(x, p, rank = NULL, data = "trees")
x |
A |
p |
The id of a patient in the cohort. |
rank |
The rank of the tree to extract. |
data |
Either 'trees' or 'fit', which requires to have already computed the fit of the input cohort. |
Phylogenetic or mutation trees data for the patient.
Other Getters:
CCF_clusters()
,
CCF()
,
Clonal_cluster()
,
Data()
,
Drivers()
,
ITransfer()
,
Samples()
,
Subclonal()
,
Truncal()
,
get_features()
# Data released in the 'evoverse.datasets' data('TRACERx_NEJM_2017_REVOLVER', package = 'evoverse.datasets') # Get all the trees for a patient Phylo(TRACERx_NEJM_2017_REVOLVER, 'CRUK0002') # Get a specific tree for a patient Phylo(TRACERx_NEJM_2017_REVOLVER, 'CRUK0002', rank = 2) # Get the fit tree for a patient
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.