Skip to content

Commit 9bb946b

Browse files
committed
add missing import
1 parent 0bcab29 commit 9bb946b

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

NAMESPACE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,5 @@ importFrom(stats,cutree)
2727
importFrom(stats,dist)
2828
importFrom(stats,hclust)
2929
importFrom(utils,head)
30+
importFrom(utils,packageVersion)
3031
importFrom(viridis,viridis)

R/main.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
#' geneNMF_programs <- multiNMF(list(sampleObj), k=5)
3737
#'
3838
#' @importFrom RcppML nmf
39+
#' @importFrom utils packageVersion
3940
#' @export
4041
multiNMF <- function(obj.list, assay="RNA", slot="data", k=5:6,
4142
hvg=NULL, nfeatures = 2000, L1=c(0,0),
@@ -573,6 +574,7 @@ runGSEA <- function(genes, universe=NULL,
573574
#' sampleObj <- runNMF(sampleObj, k=8)
574575
#' @importFrom RcppML nmf
575576
#' @importFrom methods new
577+
#' @importFrom utils packageVersion
576578
#' @export
577579
runNMF <- function(obj, assay="RNA", slot="data", k=10,
578580
new.reduction="NMF", seed=123,

R/utils.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ get_metaprogram_consensus <- function(nmf.wgt,
9090

9191
markers.consensus <- lapply(seq(1, nMP), function(c) {
9292
which.samples <- names(cl_members)[cl_members == c]
93-
gene.table <- GeneNMF:::geneList2table(nmf.wgt)[,which.samples]
93+
gene.table <- geneList2table(nmf.wgt)[,which.samples]
9494

9595
genes.avg <- apply(as.matrix(gene.table), 1, function(x){
9696
mean <- mean(x)

0 commit comments

Comments
 (0)