Skip to content

Commit

Permalink
Fix add_onset
Browse files Browse the repository at this point in the history
  • Loading branch information
bschilder committed Apr 6, 2023
1 parent 667eebf commit d48a05d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions R/add_onset.R
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
#' \item{"Onset_latest": }{The latest age of onset.}
#' }
#' @export
#' @importFrom data.table merge.data.table
#' @importFrom data.table merge.data.table=
#' @examples
#' phenos <- example_phenos()
#' phenos2 <- add_onset(phenos = phenos)
Expand All @@ -49,7 +49,7 @@ add_onset <- function(phenos,
verbose = TRUE){

# devoptera::args2vars(add_onset)
Onset_latest <- Onset_score <- NULL;
Onset_latest <- Onset_score <- Onset_name <- NULL;

if(!any(c("Onset","Onset_name","Onset_names","Onset_score")
%in% names(phenos))){
Expand Down
2 changes: 1 addition & 1 deletion R/hpo_onsets_agg.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ hpo_onsets_agg <- function(hpo_onsets,
agg_by=c("DatabaseID","HPO_ID")){
HPO_ID <- Onset <- Onset_name <- Onset_score <- . <- NULL;


dict <- hpo_dict(type = "Onset")
if("HPO_ID" %in% names(phenos)){
hpo_onsets <- hpo_onsets[HPO_ID %in% unique(phenos$HPO_ID)]
}
Expand Down

0 comments on commit d48a05d

Please sign in to comment.