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 cde358a commit 3843ffeCopy full SHA for 3843ffe
singlecell/resources/chunks/AppendMetadata.R
@@ -11,7 +11,13 @@ for (datasetId in names(seuratObjects)) {
11
printName(datasetId)
12
seuratObj <- readSeuratRDS(seuratObjects[[datasetId]])
13
14
- seuratObj <- Rdiscvr::QueryAndApplyCdnaMetadata(seuratObj)
+ if ('BarcodePrefix' %in% names(seuratObj@meta.data) && !any(is.na(as.integer(seuratObj$BarcodePrefix)))) {
15
+ seuratObj <- Rdiscvr::QueryAndApplyCdnaMetadata(seuratObj)
16
+ } else if ('cDNA_ID' %in% names(seuratObj@meta.data)) {
17
+ seuratObj <- Rdiscvr::QueryAndApplyMetadataUsingCDNA(seuratObj)
18
+ } else {
19
+ stop('Unable to find either BarcodePrefix or cDNA_ID in meta.data')
20
+ }
21
22
saveData(seuratObj, datasetId)
23
0 commit comments