plot_melissa_profiles {Melissa} | R Documentation

## Plot predictive methylaation profiles

### Description

This function plots the predictive distribution of the methylation profiles inferred using the Melissa model. Each colour corresponds to a different cluster.

### Usage

    plot_melissa_profiles(
      melissa_obj,
      region = 1,
      title = "Melissa profiles",
      x_axis = "genomic region",
      y_axis = "met level",
      x_labels = c("Upstream", "", "Centre", "", "Downstream"),
      ...
    )

### Arguments

`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

### Value

A ggplot2 object.

### Author(s)

C.A.Kapourani C.A.Kapourani@ed.ac.uk

### See Also

`create_melissa_data_obj`, `melissa`, `filter_regions`, `eval_imputation_performance`, `eval_cluster_performance`

### Examples

    # 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)

[Package Melissa version 1.6.0 Index]