Skip to content

Commit

Permalink
Update doubletFinder.R
Browse files Browse the repository at this point in the history
fix '$' to '@'
  • Loading branch information
lzmcboy authored Dec 24, 2023
1 parent b2b4a3e commit bfd1365
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/doubletFinder.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ doubletFinder <- function(seu, PCs, pN = 0.25, pK, nExp, reuse.pANN = FALSE, sct
if (reuse.pANN == FALSE) {
## Make merged real-artifical data
real.cells <- rownames(seu@meta.data)
data <- seu@assays$RNA$counts[, real.cells]
data <- seu@assays$RNA@counts[, real.cells]
n_real.cells <- length(real.cells)
n_doublets <- round(n_real.cells/(1 - pN) - n_real.cells)
print(paste("Creating",n_doublets,"artificial doublets...",sep=" "))
Expand Down

0 comments on commit bfd1365

Please sign in to comment.