Description Usage Arguments Value Author(s) See Also Examples
This function plots the predictive distribution of the methylation profiles inferred using the Melissa model. Each colour corresponds to a different cluster.
1 2 3 4 5 6 7 8 9 | 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
1 2 3 4 5 6 7 8 9 10 11 | # 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.