From 0d608a0df5929615b321f3c7e5b5948e91f2fa33 Mon Sep 17 00:00:00 2001 From: Kamil Slowikowski Date: Sat, 3 Jun 2017 16:17:28 -0400 Subject: [PATCH] use AnnotationDbi::select instead of select Other packages also define a function called select dplyr MASS AnnotationDbi It's necessary to specify the correct function. --- R/functions.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/functions.R b/R/functions.R index cde0066..e8d7043 100644 --- a/R/functions.R +++ b/R/functions.R @@ -93,7 +93,7 @@ clean.gos <- function(go.env, min.size = 5, max.size = 5000, annot = FALSE) { go.env <- go.env[size > min.size & size < max.size] # If we have GO.db installed, then add the term to each GO code. if (annot && "GO.db" %in% installed.packages()[,1]) { - desc <- select( + desc <- AnnotationDbi::select( GO.db, keys = names(go.env), columns = c("TERM"),