View source: R/splicewiz_wrappers.R
get_diff_ASE_count_barplot | R Documentation |
Generate a barplot of diff ASE counts.
get_diff_ASE_count_barplot(
x,
col_up = "#a40000",
col_down = "#16317d",
font_size = 12,
event_type = NULL,
sample_comparisons = NULL,
show_counts = TRUE,
...
)
x |
an object of class parcutils_ase. |
col_up |
a character string, default |
col_down |
a character string, default |
font_size |
a numeric, default 12, denoting font size in the plot. |
event_type |
a character vector or a string denoting type of events to plot. Default NULL, includes all. |
sample_comparisons |
a character vector or a string denoting sample comparisons to plot. Default NULL, includes all. |
show_counts |
a logical, default |
... |
Other arguments pass to the function |
a bar plot.
se <- SpliceWiz::SpliceWiz_example_NxtSE(novelSplicing = TRUE)
SpliceWiz::colData(se)$treatment <- rep(c("A", "B"), each = 3)
res <- run_ase_diff_analysis(x = se, test_factor = "treatment", test_nom = "A" ,test_denom = "B", IRmode ="annotated", cutoff_lfc = 0.6, cutoff_padj = 1, regul_based_upon = 2)
SpliceWiz::colData(se)$replicate <- rep(c("P","Q","R"), 2)
get_diff_ASE_count_barplot(res, event_type = c("IR") )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.