From 6767954bfa387b6e733ffbf9ac071453c481cee4 Mon Sep 17 00:00:00 2001 From: Kayla Jackson Date: Sun, 8 Sep 2024 16:02:31 -0700 Subject: [PATCH] Coerce `x` to matrix for `BiocNeighbors::findKNN()` to address issue #4 --- R/concordex.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/concordex.R b/R/concordex.R index 089fbd3..61544c2 100644 --- a/R/concordex.R +++ b/R/concordex.R @@ -101,7 +101,7 @@ setMethod("calculateConcordex", "ANY", labels <- labels_make_friendly(labels, nm=dimnames(x)[[1]]) req_args <- list( - x=x, + x=as.matrix(x), labels=labels, n_neighbors=n_neighbors, compute_similarity=compute_similarity,