generated from neurogenomics/templateR
-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix all fatal errors #2
Merged
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
6f46bf1
Check for range rather than fixed values in tests
HDash 526c2a5
Add error handling for missing `alternative_terms` when `include_alte…
HDash 7a486c9
Move `terms` processing block to after check for character, as approp…
HDash 121fb60
Fix default value for argument `annot`-- cast one@elementMetadata to …
HDash bf2fb09
Add value for argument `id_col` in example
HDash ab31f80
Reduce workers during `R CMD CHECK` if required
HDash bd644d2
Update remote for `monarchr` and `HPOExplorer`
HDash 6b9e5d1
Add `KGExplorer` (self) to remote to fix circular dependency
HDash 790fec0
Test rworkflows with no remote for HPOExplorer
HDash b1d7794
Temp GA fix: Switch to custom rworkflows fork
HDash a30bdd4
Port function from HPOExplorer to avoid circular dependency
HDash de63e02
Replace deprecated igraph function
HDash 7ca2469
Skip tests that may require internet
HDash d790001
Switch to master rworkflows branch
HDash File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,19 @@ | ||
Package: KGExplorer | ||
Type: Package | ||
Title: Biomedical Knowledge Network Construction and Analysis | ||
Version: 0.99.03 | ||
Version: 0.99.05 | ||
Authors@R: | ||
c( | ||
person(given = "Brian", | ||
family = "Schilder", | ||
role = c("aut","cre"), | ||
email = "[email protected]", | ||
comment = c(ORCID = "0000-0001-5949-2191")) | ||
comment = c(ORCID = "0000-0001-5949-2191")), | ||
person(given = "Hiranyamaya", | ||
family = "Dash", | ||
role = c("ctb"), | ||
email = "[email protected]", | ||
comment = c(ORCID = "0009-0005-5514-505X")) | ||
) | ||
Description: Query, construct, and analyse large-scale biomedical knowledge graphs and ontologies. | ||
URL: https://github.com/neurogenomics/KGExplorer | ||
|
@@ -75,15 +80,16 @@ Suggests: | |
tidyr, | ||
DiagrammeR, | ||
forcats, | ||
arrow | ||
arrow, | ||
curl | ||
Remotes: | ||
github::charlieccarey/monarchr, | ||
github::monarch-initiative/monarchr, | ||
github::phenoscape/rphenoscape, | ||
github::vjcitn/biocBiocypher, | ||
github::RajLabMSSM/echogithub, | ||
github::RajLabMSSM/downloadR, | ||
github::kwstat/pals | ||
RoxygenNote: 7.3.1 | ||
RoxygenNote: 7.3.2 | ||
VignetteBuilder: knitr | ||
License: GPL-3 | ||
Config/testthat/edition: 3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
#' @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}. | ||
#' Adapted from \link[HPOExplorer]{get_hpo}. | ||
#' | ||
#' 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, | ||
#' whereas in the 2023 version the maximum ontology level depth is 16 | ||
#' (due to an expansion of the HPO). | ||
#' @inheritParams get_ontology | ||
#' @inheritDotParams get_ontology | ||
#' @returns \link[simona]{ontology_DAG} object. | ||
#' | ||
#' @export | ||
#' @examples | ||
#' hpo <- get_hpo() | ||
get_hpo <- function(lvl = 2, | ||
force_new = FALSE, | ||
terms=NULL, | ||
## rols imports the international version for some reason | ||
method="github", | ||
save_dir=cache_dir(package = "KGExplorer"), | ||
...){ | ||
|
||
file <- file.path(save_dir,"hp.rds") | ||
if(!file.exists(file) || isTRUE(force_new)){ | ||
ont <- get_ontology(name = "hp", | ||
lvl = lvl, | ||
force_new = force_new, | ||
terms = terms, | ||
method = method, | ||
save_dir = save_dir, | ||
...) | ||
saveRDS(ont,file) | ||
} else { | ||
ont <- readRDS(file) | ||
} | ||
ont <- filter_ontology(ont = ont, terms = terms) | ||
return(ont) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I realized that adding this function here is actually not ideal, because it conflicts with the namespace in HPOExplorer.
Instead, just use
get_ontology("hpo")
when trying to get the HPO within KGExplorer.I'll apply this fix in the next version.