YosefLab/scone

Robustness to BiocParallel

Closed this issue · 4 comments

  • Handling an error from a normalization method (not propagated)
  • Handling error in the projection

@HenrikBengtsson if you want to help, this is probably the place where we need it the most!

Related to what we discussed over lunch:

You're looking for what I would call "early propagation of errors" or possible shorter "early stopping". It can only occur when the calling R processes checks in with the background R processes ("pools the workers for errors"), that is, if a background R process detects an error, none of the asynchronous backends I know of in R can push this to the main process such that the error occurs immediately.

Useful param values for debugging:

register(SerialParam(stop.on.error=TRUE, log=TRUE, threshold = "TRACE"))