Skip to content

Commit a310693

Browse files
committed
Fix typo
1 parent 2fd3dc1 commit a310693

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

singlecell/resources/chunks/RunCellHashing.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ for (datasetId in names(seuratObjects)) {
1515
addErrorMessage(paste0('Fraction failing cell hashing was : ', fractionFailedHashing, ' for dataset: ', datasetId, ', above threshold of: ', maxHashingPctFail))
1616
}
1717

18-
fractionDiscordantHashing <- 1 - (sum(seuratObj@meta.data$HTO.Classification == 'Discordant') / nrow(seuratObj@meta.data))
18+
fractionDiscordantHashing <- sum(seuratObj@meta.data$HTO.Classification == 'Discordant') / nrow(seuratObj@meta.data)
1919
if (!is.null(maxHashingPctDiscordant) && fractionDiscordantHashing > maxHashingPctDiscordant) {
2020
addErrorMessage(paste0('Discordant hashing rate was: ', fractionDiscordantHashing, ' for dataset: ', datasetId, ', above threshold of: ', maxHashingPctDiscordant))
2121
}

0 commit comments

Comments
 (0)