plot_melissa_profiles {Melissa} | R Documentation |
This function plots the predictive distribution of the methylation profiles inferred using the Melissa model. Each colour corresponds to a different cluster.
plot_melissa_profiles( melissa_obj, region = 1, title = "Melissa profiles", x_axis = "genomic region", y_axis = "met level", x_labels = c("Upstream", "", "Centre", "", "Downstream"), ... )
melissa_obj |
Clustered cell subtypes using Melissa inference functions. |
region |
Genomic region number. |
title |
Plot title |
x_axis |
x axis label |
y_axis |
x axis label |
x_labels |
x axis ticks labels |
... |
Additional parameters |
A ggplot2 object.
C.A.Kapourani C.A.Kapourani@ed.ac.uk
create_melissa_data_obj
, melissa
,
filter_regions
, eval_imputation_performance
,
eval_cluster_performance
# Extract synthetic data dt <- melissa_synth_dt # Create basis object from BPRMeth package basis_obj <- BPRMeth::create_rbf_object(M = 3) # Run Melissa melissa_obj <- melissa(X = dt$met, K = 2, basis = basis_obj, vb_max_iter = 10, vb_init_nstart = 1, is_parallel = FALSE, is_verbose = FALSE) gg <- plot_melissa_profiles(melissa_obj, region = 10)