KnottLab / codex

Pipeline processing CODEX output
MIT License
2 stars 1 forks source link

finalize stitching #17

Closed nathanin closed 3 years ago

nathanin commented 3 years ago

This introduces non-rectangular region handling

Codex objects should be instantiated with a "region" number for experiments imaged with more than 1 ROI. Experiments imaged as a single ROI should have "region" number 0:

A "real_tiles" metadata field is introduced. real_tiles represents to the enclosing rectangle of the given region as an NxM array of strings holding a formatted integer (i.e. '00', '01', etc.) indicating the coded tile ID for that position. real_tiles will contain an 'x' where that (x,y) tile position was not actually scanned, but is needed to fill out the enclosing rectangle area. These missing regions get filled with 0's during processing:

region loading logic is updated to deal with the different folder structure and file naming used in cases:

nathanin commented 3 years ago

@abs51295 please check how the real_tiles situation interacts with the stitching module. I've so far just inserted the usual check here.

Also the stitching loop condition: