Prioritise targets: multi-heatmap

prioritise_targets_multiheatmap(
  top_targets,
  prioritise_targets_network_out,
  ctd_list = load_example_ctd(c("ctd_DescartesHuman.rds", "ctd_HumanCellLandscape.rds"),
    multi_dataset = TRUE),
  gene_order = NULL,
  hpo = HPOExplorer::get_hpo(),
  gencc_extra = list(),
  size = 6,
  width = 50,
  heights = NULL,
  show_plot = TRUE
)

Arguments

top_targets

A results table after it has been annotated with add_disease and add_symptom_results.

prioritise_targets_network_out

Output of prioritise_targets_network.

ctd_list

A named list of CellTypeDataset objects each created with generate_celltype_data.

gene_order

The order in which to show genes in heatmap x-axis.

hpo

Human Phenotype Ontology object, loaded from get_ontology.

gencc_extra

Extra rows to add to the diseases GenCC data.

size

Plot text size.

width

Width of the saved plot.

heights

Passed to wrap_plots.

show_plot

Print the plot to the console.

Examples

top_targets <- MSTExplorer::example_targets$top_targets[1:10]
prioritise_targets_network_out <- prioritise_targets_network(
  top_targets = top_targets)
#> Adding logFC column.
#> Mapping cell types to cell ontology terms.
#> Adding stage information.
#> Creating network.
#> Making hoverboxes from: 'node', 'node_type', 'q', 'CellType', 'ancestor_name', 'disease_id', 'ontLvl', 'definition', 'hpo_name', 'hpo_id', 'disease_name', 'shape', 'name'
#> Adding hoverboxes to data.table.
#> Loading required namespace: visNetwork
#> Creating visNetwork plot.
#> ‘title’ column already exists. Skipping hoverbox creation.
#> Using palette: kovesi.linear_bmy_10_95_c78
#> Warning: Can't find 'name' in node data.frame
#> Saving plot --> /tmp/RtmpsW0tFt/file100e2ddef294_prioritise_targets_network.html

out <- prioritise_targets_multiheatmap(
  top_targets = top_targets,
  prioritise_targets_network_out = prioritise_targets_network_out,
  ctd_list=load_example_ctd("ctd_DescartesHuman.rds", multi_dataset = TRUE))
#> Loading ctd_DescartesHuman.rds
#> Mapping cell types to cell ontology terms.
#> Adding stage information.
#> Gathering data from GenCC.
#> Importing cached file.
#> Evidence scores for: 
#>  - 11050 diseases 
#>  - 5533 genes
#> + Version: 2025-08-08
#> Adding disease_name and disease_description.
#> Constructing HPO gene x phenotype matrix.
#> Reading cached RDS file: phenotype_to_genes.txt
#> + Version: v2025-05-06
#> Annotating gene-disease associations with Evidence Score
#> Gathering data from GenCC.
#> Importing cached file.
#> Evidence scores for: 
#>  - 11050 diseases 
#>  - 5533 genes
#> + Version: 2025-08-08
#> Adding HPO names.
#> Translating ontology terms to names.
#> Mapping cell types to cell ontology terms.
#> Adding stage information.