Skip to content

Commit 35f4af5

Browse files
committed
Add error handling for plotting
1 parent 992cb86 commit 35f4af5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

singlecell/resources/chunks/CiteSeqPlots.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ for (datasetId in names(seuratObjects)) {
99
tryCatch({
1010
CellMembrane::FeaturePlotAcrossReductions(seuratObj, features = paste0('adt_', adt))
1111
}, error = function(e){
12-
print(conditionMessage(e))
12+
warning(conditionMessage(e))
1313
traceback()
14-
print('ADTs:')
15-
print(sort(rownames(seuratObj@assays$ADT)))
14+
message('ADTs:')
15+
message(sort(rownames(seuratObj@assays$ADT)))
1616
stop(paste0('Error running FeaturePlotAcrossReductions for: ', datasetId))
1717
})
1818

0 commit comments

Comments
 (0)