Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lmw123 committed Jun 16, 2022
1 parent 71066f4 commit 184b623
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/FastFindAnchors.R
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ FastFindAnchors = function(
data.table::setindex(all.anchors, dataset1)

message("Merging data")
if (nSample < sample.cut) {
if (nSample <= sample.cut) {
anchor.group <- all.anchors %>% group_by(dataset1, dataset2) %>% summarise(n = n())
similarity.matrix = matrix(data = 0, ncol = nSample, nrow = nSample)
similarity.matrix[lower.tri(similarity.matrix, diag=FALSE) | upper.tri(similarity.matrix, diag=FALSE)] = anchor.group$n
Expand Down

0 comments on commit 184b623

Please sign in to comment.