Skip to content

Commit ecb43ec

Browse files
committed
Restore bug workaround
1 parent f2dfbd0 commit ecb43ec

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

singlecell/resources/chunks/SubsetSeurat.R

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ for (datasetId in names(seuratObjects)) {
22
seuratObj <- seuratObjects[[datasetId]]
33
seuratObjects[[datasetId]] <- NULL
44

5+
#TODO: this is a stopgap for a former bug in RunCellHashing. Retain until all existing seurat objects lacking this field are removed
6+
if (!'HTO.Classification' %in% names(seuratObj@meta.data) && 'consensuscall.global' %in% names(seuratObj@meta.data)) {
7+
seuratObj$HTO.Classification <- seuratObj$consensuscall.global
8+
}
9+
510
<SUBSETS>
611

712
newSeuratObjects[[datasetId]] <- seuratObj

0 commit comments

Comments
 (0)