From ab43ec4e790dc62616e57181e5edec020bfe3e00 Mon Sep 17 00:00:00 2001 From: czechb3 Date: Wed, 7 Feb 2024 15:13:51 +0100 Subject: [PATCH] fix: remove gDRinternal namespace --- R/add_annotation.R | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/R/add_annotation.R b/R/add_annotation.R index c823b0aa..6c09fece 100644 --- a/R/add_annotation.R +++ b/R/add_annotation.R @@ -63,7 +63,9 @@ add_CellLine_annotation <- function( system.file("annotation_data", fname, package = annotationPackage), header = TRUE ) } else { - gDRinternal::get_cell_line_annotations(dt_metadata[[cellline]]) + eval(parse(text = paste0(annotationPackage, + "::", + "get_cell_line_annotations")))(dt_metadata[[cellline]]) } CLs_info <- CLs_info[, c(DB_cellid_header, DB_cell_annotate), with = FALSE] @@ -174,7 +176,9 @@ add_Drug_annotation <- function( system.file("annotation_data", fname, package = annotationPackage), header = TRUE ) } else { - gDRinternal::get_drug_annotations() + eval(parse(text = paste0(annotationPackage, + "::", + "get_drug_annotations")))() }