# Calculate clone proportions for a tumor phylogenetic tree represented by a B matrix
# and following a positive selection model
# Create a mutation matrix for a phylogenetic tree with 10 nodes and k = 2
B_mat <- create_B(10, 2)
# Calculate the clone proportions following a positive selection model
clone_proportions <- calc_clone_proportions(B_mat, "positive")
Run the code above in your browser using DataLab