Skip to content

Commit

Permalink
Fix error in calculateSIRSpace function.
Browse files Browse the repository at this point in the history
  • Loading branch information
AnthonyChristidis committed Sep 20, 2024
1 parent 1e2f389 commit e24f174
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Type: Package
Package: scDiagnostics
Title: Cell type annotation diagnostics
Version: 1.0.0
Version: 0.99.9
Authors@R: c(
person("Anthony", "Christidis", role = c("aut", "cre"),
email = "anthony-alexander_christidis@hms.harvard.edu",
Expand Down
2 changes: 1 addition & 1 deletion R/projectSIR.R
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ conditionalMeans <- function(reference_data,
k = n_neighbor)))
cluster_means <- do.call(
rbind, lapply(unique(clusters),
function(cl) colMeans(assay_mat[clusters == cl, ])))
function(cl) colMeans(assay_mat[clusters == cl,, drop = FALSE])))
rownames(cluster_means) <- rep(cell_type, nrow(cluster_means))
cond_means <- rbind(cond_means, cluster_means)
}
Expand Down

0 comments on commit e24f174

Please sign in to comment.