if (requireNamespace("clonevol", quietly = TRUE)) {
# Run ClonEvol with its example data
# (refer to ClonEvol documentation for details)
data <- clonevol::aml1
y <- clonevol::infer.clonal.models(
variants = data$variants,
cluster.col.name = "cluster",
vaf.col.names = data$params$vaf.col.names,
subclonal.test = "bootstrap",
subclonal.test.model = "non-parametric",
num.boots = 1000,
founding.cluster = 1,
cluster.center = "mean",
ignore.clusters = NULL,
min.cluster.vaf = 0.01,
sum.p = 0.05,
alpha = 0.05
)
# Make branch lengths available
y <- clonevol::convert.consensus.tree.clone.to.branch(y)
# Extract data and plot the results
extract_tables_from_clonevol(y, model = 1) |>
jellyfisher()
} else {
message(
"Please install the clonevol package from GitHub: devtools::install_github('hdng/clonevol')"
)
}
Run the code above in your browser using DataLab