plot_observed_pathways | R Documentation |
This function takes a cohort of mutation trees and the estimated Mutual Hazard Network as input and plot the most frequent observed pathways.
plot_observed_pathways(
tree_obj,
Theta,
top_M = 10,
lambda_s = 1,
mutation_colors = NULL,
prob_digits = 2,
at_least_twice = TRUE
)
tree_obj |
A TreeMHN object. |
Theta |
An n-by-n matrix representing a Mutual Hazard Network. |
top_M |
Number of most frequent pathways to plot (Default: 10). |
lambda_s |
Sampling rate (Default: 1) |
mutation_colors |
A named vector with the color codes for all mutations (Default: NULL) |
prob_digits |
Number of digits to show for the probabilities (Default: 2) |
at_least_twice |
A boolean flag indicating whether only trajectories that appear at least twice in the dataset are shown (Default: TRUE). If true, this flag will overwrite the top_M argument. |
Xiang Ge Luo
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.