gpt_annot_plot_branches: Plot annotations from GPT: by branch

View source: R/gpt_annot_plot_branches.R

gpt_annot_plot_branchesR Documentation

Plot annotations from GPT: by branch

Description

Plot annotations from GPT by ancestral HPO branch.

Usage

gpt_annot_plot_branches(
  hpo = get_hpo(),
  gpt_annot = gpt_annot_read(hpo = hpo),
  keep_descendants = NULL,
  keep_ont_levels = NULL,
  metric = "congenital_onset",
  fill_lab = gsub("_", " ", metric),
  show_plot = TRUE
)

Arguments

hpo

Human Phenotype Ontology object, loaded from get_ontology.

gpt_annot

Output from gpt_annot_read.

keep_descendants

Terms whose descendants should be kept (including themselves). Set to NULL (default) to skip this filtering step.

keep_ont_levels

Only keep phenotypes at certain absolute ontology levels to keep. See add_ont_lvl for details.

metric

Annotation metric to plot.

fill_lab

Fill label in legend.

show_plot

Show the plot.

Value

Named list of plot and data.

Examples

out <- gpt_annot_plot_branches()

neurogenomics/HPOExplorer documentation built on Aug. 24, 2024, 1:39 a.m.