scmet_plot_efdr_efnr_grid: Plot EFDR/EFNR grid

View source: R/utils_plots.R

scmet_plot_efdr_efnr_gridR Documentation

Plot EFDR/EFNR grid

Description

Function for plotting the grid search performed to obtain the optimal posterior evidence threshold to achieve a specific EFDR.

Usage

scmet_plot_efdr_efnr_grid(obj, task = "hvf")

Arguments

obj

Either the scMET object after calling the scmet_hvf_lvf functions or the object from calling the scmet_differential function.

task

String. When calling variable features, i.e. output of scmet_hvf_lvf, it can be either "hvf" or "lvf". For differential analysis, i.e. output of scmet_differential, it can be either: (1) "diff_mu" for diff mean methylation, (2) "diff_epsilon" for residual overdispersion, or (3) "diff_gamma" for overdispersion analysis.

Value

A ggplot2 object.

Author(s)

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

See Also

scmet, scmet_differential, scmet_hvf_lvf, scmet_plot_mean_var, scmet_plot_vf_tail_prob, scmet_plot_volcano, scmet_plot_ma

Examples

# Fit scMET
obj <- scmet(Y = scmet_dt$Y, X = scmet_dt$X, L = 4, iter = 100)
obj <- scmet_hvf(scmet_obj = obj, delta_e = 0.7)
scmet_plot_vf_tail_prob(obj = obj, task = "hvf")


andreaskapou/scMET documentation built on Feb. 1, 2024, 10:46 a.m.