Skip to content

Commit

Permalink
fix add_death
Browse files Browse the repository at this point in the history
  • Loading branch information
bschilder committed Mar 9, 2025
1 parent 2bc5607 commit 25306b3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
# HPOExplorer 1.0.5

## New features

* Store HPO ontology in default `KGExplorer` cache dir to reduce disk storage.

## Bug fixes
* `add_death`: Fix incorrect column checking.

# HPOExplorer 1.0.4

## Bug fixes
Expand Down
3 changes: 2 additions & 1 deletion R/add_death.R
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ add_death <- function(phenos,
AgeOfDeath_earliest <- AgeOfDeath_name <- NULL;

if(!all(c("AgeOfDeath",
"AgeOfDeath_name") %in% names(phenos))){
"AgeOfDeath_names" # NOTE: Gets turned from "AgeOfDeath_name" to "AgeOfDeath_names" during aggregation
) %in% names(phenos))){
messager("Annotating phenos with AgeOfDeath.")
phenos <- add_disease(phenos = phenos,
all.x = all.x,
Expand Down

0 comments on commit 25306b3

Please sign in to comment.