DistributedScience / Distributed-CellProfiler

Run encapsulated docker containers with CellProfiler in the Amazon Web Services infrastructure.
https://distributedscience.github.io/Distributed-CellProfiler/
Other
37 stars 24 forks source link

Format integers for varying well name in run_batch_general #148

Closed fefossa closed 10 months ago

fefossa commented 1 year ago

Inside each function of run_batch_general.py the "Metadata_Well" is formatted with '%02d' but sometimes we have images from different microscopes where the well name would be A1 instead of A01.

I added a flag well_bool = False #True to A01, False to A1 and changed inside each function the '%02d' for well_format. And then added:

if well_bool:
    well_format = '%02d'
else:
    well_format = '%01d'

Probably would need to change that as well for Metadata_Site because I think some microscopes could also have sites = 1 or 01.

I'm not sure if that's the best place to add this functionality but worked for me.

run_batch_general_modified.txt