Read in phenotype annotations generated by GPT and do some initial preprocessing (e.g. adding HPO IDs).
gpt_annot_read(
save_dir = KGExplorer::cache_dir(package = "HPOExplorer"),
phenotype_to_genes = load_phenotype_to_genes(save_dir = save_dir),
force_new = FALSE,
hpo = get_hpo(),
include_nogenes = TRUE,
verbose = TRUE,
...
)Directory to save a file to.
Output of load_phenotype_to_genes mapping phenotypes to gene annotations.
If TRUE, the data will be downloaded from GitHub
even if it already exists locally.
Human Phenotype Ontology object, loaded from get_ontology.
Include phenotypes with no associated genes.
Print messages.
Arguments passed on to get_data
add_versionAdd the release version to the returned object's attributes
filename or vector of names of files to be downloaded. If NULL,
all assets attached to the release will be downloaded.
repoRepository name in format "owner/repo". Defaults to guess_repo().
tagtag for the GitHub release to which this data should be attached.
overwriteShould any local files of the same name be overwritten?
default TRUE.
data.table of phenotype annotations
gpt_annot <- gpt_annot_read()
#> Translating ontology terms to ids.
#> Reading cached RDS file: phenotype_to_genes.txt
#> + Version: 2025-03-03
#> 151 phenotypes do not have matching HPO IDs.
#> Reading in GPT annotations for 16,982 phenotypes.