Skip to content

Commit

Permalink
Merge pull request #40 from amcdavid/main
Browse files Browse the repository at this point in the history
Fix for #39
  • Loading branch information
joycekang authored Jan 16, 2023
2 parents fe12eb7 + d7b4047 commit 2336064
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/confidenceScores.R
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ calcPerClusterMappingMetric = function(reference, query, query_cluster_labels, m
# Calculate query cluster centroid and covariances in PC space
for (c in 1:num_clusters) {
cluster_idx = which(query_cluster_labels == query_cluster_labels_unique[c])
cluster_Zq_pca = query$Zq_pca[, cluster_idx]
cluster_Zq_pca = query$Zq_pca[, cluster_idx, drop = FALSE]
cov_cs[[c]] = cov(t(cluster_Zq_pca))
center_cs[, c] = rowMeans(cluster_Zq_pca)
}
Expand Down

0 comments on commit 2336064

Please sign in to comment.