Skip to content

Commit

Permalink
Pin HPO version in get_hpo
Browse files Browse the repository at this point in the history
  • Loading branch information
bschilder committed Mar 9, 2025
1 parent 3fbb280 commit 2bc5607
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 9 deletions.
14 changes: 10 additions & 4 deletions R/get_hpo.R
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
#' @describeIn get_ get_
#' Get Human Phenotype Ontology (HPO)
#'
#' Updated version of Human Phenotype Ontology (HPO).
#' Created from the OBO files distributed by the HPO project's
#' \href{https://github.com/obophenotype/human-phenotype-ontology}{GitHub}.
#' Downloads and imports the "v2024-02-08" release of the
#' Human Phenotype Ontology (HPO) for the purposes of version control and
#' consistency of results. To get the latest version of the HPO,
#' use \code{get_hpo(tag="release", force_new=T)}
#' The HPO objects are created from the OBO files distributed via
#' the official
#' \href{https://github.com/obophenotype/human-phenotype-ontology}{
#' HPO GitHub repository}.
#'
#' By comparison, the \code{hpo} data from \pkg{ontologyIndex} is from 2016.
#' Note that the maximum ontology level depth in the 2016 version was 14,
Expand All @@ -20,7 +25,7 @@
get_hpo <- function(lvl = 2,
force_new = FALSE,
terms=NULL,
## rols imports the international version for some reason
tag = "v2024-02-08",
method="github",
save_dir=KGExplorer::cache_dir(),
...){
Expand All @@ -33,6 +38,7 @@ get_hpo <- function(lvl = 2,
terms = terms,
method = method,
save_dir = save_dir,
tag = tag,
...)
saveRDS(ont,file)
} else {
Expand Down
17 changes: 12 additions & 5 deletions man/get_.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2bc5607

Please sign in to comment.