View source: R/splicewiz_wrappers.R
get_ASE_data_matrix | R Documentation |
Get a data matrix (PSI, logit, z-score) for a given ASE
get_ASE_data_matrix(
se,
event_names,
samples,
summarise_groups = TRUE,
summarise_groups_by = "mean",
method = "PSI",
column_condition = "condition",
depth_threshold = 10,
logit_max = 5,
na.percent.max = 0.1
)
se |
an object of class NxtSE. |
event_names |
a character vector denoting valid ASE names to plot in the heatmap. |
samples |
a character vector denoting valid sample names to plot in the heatmap. |
summarise_groups |
logical, denoting whether to summaries groups (replicates mostly), default |
summarise_groups_by |
a character string denoting a method to summaries groups. Can be one of the |
method |
a character string denoting a method for data value. Can be one of the "PSI", "logit" or "Z-Score". |
column_condition |
a character string denoting a condition column from |
depth_threshold |
default 10, refer |
logit_max |
default 5, refer |
na.percent.max |
default 0.1, refer |
a data matrix
se <- SpliceWiz::SpliceWiz_example_NxtSE(novelSplicing = TRUE)
SpliceWiz::colData(se)$treatment <- rep(c("A", "B"), each = 3)
SpliceWiz::colData(se)$replicate <- rep(c("P","Q","R"), 2)
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)
event_names = get_ASEsets_by_regulation(x = res, sample_comparisons = "A_VS_B", regul = "all") %>% unlist()
get_ASE_data_matrix(se, event_names , samples = c("A", "B"), column_condition ="treatment")
get_ASE_data_matrix(se, event_names , samples = c("P", "Q","R"), column_condition ="replicate")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.