View source: R/correlation_heatmap.R
correlation_heatmap | R Documentation |
Plot a phenotype x phenotype correlation matrix based on genetic overlap.
correlation_heatmap(
top_targets,
row_side_vars = c("ancestor_name", "ontLvl"),
col_side_vars = c("n_celltypes", "n_genes"),
row_labels = "hpo_name",
phenotype_to_genes = HPOExplorer::load_phenotype_to_genes(),
col = pals::gnuplot(),
show_plot = TRUE,
save_path = tempfile(fileext = "correlation_heatmap.pdf"),
height = 10,
width = height * 1.3,
fontsize = 7,
seed = 2023,
verbose = TRUE
)
top_targets |
data.table of prioritised targets generated by prioritise_targets. |
row_side_vars |
Variables to include in row-side metadata annotations. |
col_side_vars |
Variables to include in column-side metadata annotations. |
row_labels |
Optional row labels which are put as row names in the heatmap. |
phenotype_to_genes |
Output of load_phenotype_to_genes mapping phenotypes to gene annotations. |
col |
A vector of colors if the color mapping is discrete or a color mapping function if the matrix is continuous numbers (should be generated by |
show_plot |
Show the plot. |
save_path |
Path to save interactive plot to as a self-contained HTML file. |
height |
Height of the heatmap body. |
width |
Width of the heatmap body. |
fontsize |
Axis labels font size. |
seed |
Set the seed for reproducible clustering. |
verbose |
Print messages. |
Plot
top_targets <- MSTExplorer::example_targets$top_targets[seq(100),]
hm <- correlation_heatmap(top_targets = top_targets)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.