Skip to content

Commit 95e508c

Browse files
committed
update
1 parent 877a8b6 commit 95e508c

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

DESCRIPTION

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ RoxygenNote: 6.1.1
1313
Imports:
1414
Seurat (>= 3.0.0),
1515
stats,
16-
data.table
16+
data.table,
17+
Matrix
1718
Suggests:
1819
knitr,
1920
rmarkdown,

NAMESPACE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
export(findmarkergenes)
44
export(scCATCH)
5+
import(Matrix)
56
import(Seurat)
67
import(data.table)
78
import(stats)

R/findmarkergenes.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@
176176
#' @details Renal Cell Carcinoma: Kidney.
177177
#' @details Supratentorial Primitive Neuroectodermal Tumor: Brain.
178178
#' @seealso \url{https://github.com/ZJUFanLab/scCATCH}
179-
#' @import Seurat stats
179+
#' @import Seurat stats Matrix
180180
#' @export findmarkergenes
181181

182182
findmarkergenes <- function(object, species = NULL, cluster = "All", match_CellMatch = FALSE, cancer = NULL,
@@ -226,7 +226,7 @@ findmarkergenes <- function(object, species = NULL, cluster = "All", match_CellM
226226
genedata1 <- as.data.frame(table(genedata$new_name), stringsAsFactors = F)
227227
genedata1 <- genedata1[genedata1$Freq == 1, ]
228228
genedata <- genedata[genedata$new_name %in% genedata1$Var1, ]
229-
ndata <- ndata[genedata$raw_name, , drop=FALSE ]
229+
ndata <- ndata[genedata$raw_name,]
230230
rownames(ndata) <- genedata$new_name
231231
cat('\n')
232232
cat("Note: the new data matrix includes", ncol(ndata), "cells and", nrow(ndata), "genes.", "\n")

0 commit comments

Comments
 (0)