diff --git a/NEWS.md b/NEWS.md index ea743be..e77eec7 100644 --- a/NEWS.md +++ b/NEWS.md @@ -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 diff --git a/R/add_death.R b/R/add_death.R index 78d640a..0f6e047 100644 --- a/R/add_death.R +++ b/R/add_death.R @@ -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,