Open vreuter opened 1 year ago
Currently, we can rename the raw image folders after deconvolution and nucleus detection, prefixing them with an underscore so that they're skipped by the image handler (discarded by its filter function -- ). This is nice, but we could make this less manual and less effectful on the file system.
Here's a rough outline of improvements we could do, increasing by difficulty and by soundness of the design.
From some initial use and looking at logging output, it appears that constructing an
ImageHandler
and then using it for some step of the processing (e.g., nucleus detection, drift correction, spot detection) can result in unnecessary IO time and memory use because of extra image file parsing. "Extra" in the sense that there are some image files in subfolders of a main data folder that appear to have image files that are parsed even when they're not going to be used. That is,ImageHandler
is very eager and general purpose, parsing images that it can "see" from theimage_path
value that's in use, while in fact it could be made lazier or we could modify the program and data type architecture to ensure that we do minimal IO work and reduce memory usage.