plot_pi: Plot the estimated proportions of US or USA counts in each...

View source: R/plot_pi.R

plot_piR Documentation

Plot the estimated proportions of US or USA counts in each group - single-cell RNA-seq data

Description

plot_pi plots the posterior means of the proportions of US (if 'type' = 'US') or USA (if 'type' = 'USA') counts, in each group. If 'CI' is TRUE, a profile Wald type confidence interval will also be added; the level of the confidence interval is specified by 'CI_level'.

Usage

plot_pi(results, gene_id, cluster_id, type = "USA", CI = TRUE, CI_level = 0.95)

Arguments

results

a list of data.frame objects, computed via DifferentialRegulation.

gene_id

a character, indicating the gene to plot.

cluster_id

a character, indicating the cell cluster to plot.

type

a character (either 'SU' or 'SUA'). If "SU", it plots the proportion of Spliced and Unspliced counts (Ambiguous counts are assigned 50:50 to Spliced and Unspliced counts). If "SUA" (default), it plots the proportion of Spliced, Unspliced and Ambiguous counts (Ambiguous counts are kept separately). Note that, although US reads are easier to interpret, USA reads more closely reflect what is being compared between conditions.

CI

a logical ('TRUE' by default), indicating whether to plot a profile Wald type confidence interval around the estimated proportions.

CI_level

a numeric between 0 and 1, indicating the level of the confidence interval.

Value

A ggplot object.

Author(s)

Simone Tiberi simone.tiberi@unibo.it

See Also

DifferentialRegulation

Examples

# see the example of DifferentialRegulation function:
help(DifferentialRegulation)


SimoneTiberi/DifferentialRegulation documentation built on Feb. 5, 2024, 8:48 a.m.