broadinstitute / pooled-cell-painting-profiling-recipe

:woman_cook: Recipe repository for image-based profiling of Pooled Cell Painting experiments
BSD 3-Clause "New" or "Revised" License
6 stars 4 forks source link

Change Skip Site/Overwrite Behavior in 0.preprocess-sites #88

Open ErinWeisbart opened 2 years ago

ErinWeisbart commented 2 years ago

I want to better handle a situation where you have processed only some of your data through 0.preprocess-sites/1.process-spots.py (e.g. uncaught exception stops processing half way). For config options - perform either processes or skips the whole module while force_overwrite only happens at the file level (i.e. all of the data processing happens and then it decides to save the files or not) so your only option is to run the whole thing over again if you're missing sites.

I'm thinking it needs another config option that allows you to skip complete sites. If this new option is True, at for site in split sites: it should to see if the output folder exists for that site and if so it skips processing that site.

Might also want to do this for 2.process-cells as well.