plot_corr_heatmap | R Documentation |
The order of the genes in the lower triangle heatmap are defined as the input order of gene_ids
.
plot_corr_heatmap(
inclusion_tbl,
vst_id,
quality_thrshld,
vst_expression_tbl,
min_mean_count = 1,
gene_ids,
map_ID_2_names = TRUE,
species,
event_position = "first",
corr_method = c("spearman", "pearson", "kendall"),
return_data = FALSE,
verbose,
...
)
inclusion_tbl |
path to vast-tools inclusion table that contains a vst_id event. |
vst_id |
vast-tools alternative splicing event to grep in the |
quality_thrshld |
vast-tools event quantification quality score threshold. Must be one of "N", "VLOW", "LOW", "OK", "SOK". For more info read the official documentation here under "Column 8, score 1". |
vst_expression_tbl |
Path to a vast-tools expression table (either cRPKM or TPM). |
min_mean_count |
Filter out low expressed genes in the table read from |
gene_ids |
Character vector containing valid ENSEMBL gene IDs to be used for calculating the correlations. |
map_ID_2_names |
Logical. Whether or not to map the ENSEMBL gene IDs to gene names. Can be used only if |
species |
Species character to use to map the ENSEMBL gene ID. Used by |
event_position |
Where the place the |
corr_method |
Either |
return_data |
Logical. Return the heatmap or the dataframe. Default is |
verbose |
|
... |
A ggplot2 plot or a tibble.
# Create a gene ID mapping object.
ensembl <- gimme_mart()
# Map SRSF1-12 gene names to ENSEMBL GENE IDs.
SRSF_IDs <- gene_name_2_ensembl_id(gene_name = paste0("SRSF", 1:12))
# Plot the correlations between all SRSFs genes expressions and one AS event
plot_corr_heatmap(inclusion_tbl = psi_path, vst_id = "HsaEX0000001",
quality_thrshld = "VLOW",
vst_expression_tbl = expr_path,
corr_method = "spearman", use = "complete.obs",
gene_ids = SRSF_IDs, verbose = F,
event_position = "middle")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.