ppapasaikas / griph

Graph Inference of Population Heterogeneity.
https://ppapasaikas.github.io/griph/
GNU General Public License v3.0
10 stars 3 forks source link

Ensure registered cluster is stopped in case script does not complete #5

Closed ppapasaikas closed 7 years ago

mbstadler commented 7 years ago

I added a tryCatch block around all the code in SC_cluster that makes use of parallel functionality, stopping the cluster in the "finally" block, so it runs even if there is an error or a user abort condition during that part of the code