From a5cf80493ca1161d34a55f02e440c61bbdb76a7e Mon Sep 17 00:00:00 2001 From: zhewa <314100793@qq.com> Date: Tue, 16 Jul 2019 11:37:45 -0400 Subject: [PATCH] update findMarkers --- NAMESPACE | 1 + R/findMarkers.R | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/NAMESPACE b/NAMESPACE index fb123e06..fdf6b708 100755 --- a/NAMESPACE +++ b/NAMESPACE @@ -127,6 +127,7 @@ importFrom(gtable,gtable_height) importFrom(gtable,gtable_width) importFrom(matrixStats,logSumExp) importFrom(methods,.hasSlot) +importFrom(methods,hasArg) importFrom(methods,is) importFrom(methods,new) importFrom(pROC,auc) diff --git a/R/findMarkers.R b/R/findMarkers.R index 315a5f73..f2d8cd73 100644 --- a/R/findMarkers.R +++ b/R/findMarkers.R @@ -82,6 +82,7 @@ #' # Plot dendrogram #' plotDendro(DecTree) #' @import magrittr +#' @importFrom methods hasArg #' @export findMarkers <- function(features, class, @@ -111,7 +112,7 @@ findMarkers <- function(features, features <- t(features) # If no detailed cell types are provided - if(!hasArg(cellTypes)){ + if(!methods::hasArg(cellTypes)){ print('Building tree...')