We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 669e5a6 commit 68af414Copy full SHA for 68af414
singlecell/resources/chunks/DropAssays.R
@@ -4,7 +4,13 @@ for (datasetId in names(seuratObjects)) {
4
5
for (assayName in assayNames) {
6
if (assayName %in% names(seuratObj@assays)) {
7
+ print(paste0('Dropping assay: ', assayName))
8
+ updateAssay <- assayName == Seurat::DefaultAssay(seuratObj)
9
seuratObj@assays[[assayName]] <- NULL
10
+ if (updateAssay) {
11
+ print(paste0('Changing default assay to: ', names(seuratObj@assays)[1]))
12
+ Seurat::DefaultAssay(seuratObj) <- names(seuratObj@assays)[1]
13
+ }
14
} else {
15
print(paste0('Assay not found, skipping: ', assayName))
16
}
0 commit comments