Skip to content

Commit 5925a00

Browse files
committed
Error handling for PlotAverageCiteSeqCounts
1 parent b28147d commit 5925a00

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

singlecell/resources/chunks/PlotAverageCiteSeqCounts.R

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,13 @@ for (datasetId in names(seuratObjects)) {
44
if (!('ADT' %in% names(seuratObj@assays))) {
55
print('ADT assay not present, skipping')
66
} else {
7-
CellMembrane::PlotAverageAdtCounts(seuratObj, groupFields = fieldNames)
7+
tryCatch({
8+
CellMembrane::PlotAverageAdtCounts(seuratObj, groupFields = fieldNames)
9+
}, error = function(e){
10+
print(paste0('Error running PlotAverageCiteSeqCounts for: ', datasetId))
11+
print(conditionMessage(e))
12+
traceback()
13+
})
814
}
915

1016
# Cleanup

0 commit comments

Comments
 (0)