gerlichlab / looptrace

Fork (from EMBL Gitlab) of the looptrace project: https://git.embl.de/grp-ellenberg/looptrace
MIT License
2 stars 1 forks source link

Need to discard data from FOVs with no beads for drift correction in reference timepoint #285

Open vreuter opened 6 months ago

vreuter commented 6 months ago

Encountered recently w/ @TLSteinacker

vreuter commented 6 months ago

This is a follow-up of #222 , where while we "tolerate" the lack of sufficient bead ROIs for drift correction in that we don't crash during the partition phase when there are too few ROIs, we haven't yet encountered this when there's an absence of sufficient ROIs in the reference timepoint and we proceed to the next step, where we're trying to do drift correction of all data, but we're lacking the partition files (shifting and accuracy) for a particular FOV, due to the absence of bead ROIs in the reference timepoint for that FOV (which is the same as for all other FOVs).

vreuter commented 2 months ago

Underscoring the ZARR seems to work to get the data to be ignore for nuclear image / mask creation, but then the numbering/naming of the fields of view is wrong. Here's an example, and how it messes up the visualisation in napari of the nuclear masks.

$ ls -1 nuc_images_zarr
P0001.zarr
P0002.zarr
P0003.zarr
P0004.zarr
P0005.zarr
P0006.zarr
P0007.zarr
P0008.zarr
P0009.zarr
P0010.zarr
P0011.zarr
P0012.zarr
P0013.zarr
P0014.zarr
_P0015.zarr
P0016.zarr
P0017.zarr
P0018.zarr
P0019.zarr
P0020.zarr
P0021.zarr
P0022.zarr
P0023.zarr
P0024.zarr
P0025.zarr
P0026.zarr
P0027.zarr
P0028.zarr
P0029.zarr
P0030.zarr
$
$
$ ls -1 nuc_images
P0001.zarr
P0002.zarr
P0003.zarr
P0004.zarr
P0005.zarr
P0006.zarr
P0007.zarr
P0008.zarr
P0009.zarr
P0010.zarr
P0011.zarr
P0012.zarr
P0013.zarr
P0014.zarr
P0016.zarr
P0017.zarr
P0018.zarr
P0019.zarr
P0020.zarr
P0021.zarr
P0022.zarr
P0023.zarr
P0024.zarr
P0025.zarr
P0026.zarr
P0027.zarr
P0028.zarr
P0029.zarr
P0030.zarr
$
$
$ ls -1 nuc_masks/
P0001.zarr
P0002.zarr
P0003.zarr
P0004.zarr
P0005.zarr
P0006.zarr
P0007.zarr
P0008.zarr
P0009.zarr
P0010.zarr
P0011.zarr
P0012.zarr
P0013.zarr
P0014.zarr
P0015.zarr
P0016.zarr
P0017.zarr
P0018.zarr
P0019.zarr
P0020.zarr
P0021.zarr
P0022.zarr
P0023.zarr
P0024.zarr
P0025.zarr
P0026.zarr
P0027.zarr
P0028.zarr
P0029.zarr
Screenshot 2024-07-11 at 12 51 28