Skip to content

Commit

Permalink
Added missing library to mapping.R
Browse files Browse the repository at this point in the history
  • Loading branch information
pcamara committed Mar 20, 2024
1 parent 4aca9c5 commit 54f7d91
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions R/mapping.R
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ GetTransferMatrix <- function(stvea_object,
stop("Package \"fastknn\" needed for this function to work. Please install it.",
call. = FALSE)
}
library(fastknn)
stvea_object@codex_clusters <- fastknn(as.matrix(stvea_object@cite_clean[,colnames(stvea_object@corrected_codex)]),
as.factor(stvea_object@cite_clusters),
as.matrix(stvea_object@corrected_codex),
Expand Down

0 comments on commit 54f7d91

Please sign in to comment.