Open vreuter opened 3 months ago
Related: #260
Related: #237
Supersedes: #234
Related: #228
Thanks for this really clear summary!!
regarding the real number >= 1, I agree with you that allo_merge_dilation should at least be as big as allo_merge_dilation.
⚠️ -- beware of interaction with #237
To combat the problem of proximal regional spots that should be retained being used as 2 separate ROIs rather than 1, we can merge the ROIs after the detection. Discussed w/ @TLSteinacker , and we have some planning for this...
roi_merge_strategy
, and it should have the following properties:auto_merge_dilation
: real number >= 1, specifying how much to "dilate" each ROI for overlap consideration of other ROIs from the same timepoint, always required (because same-timepoint proximal spots will always be considered for overlap and merge)allo_merge_dilation
: real number >= 1, specifying how much to "dilate" each ROI for overlap consideration of other ROIs from other timepoints. we may want to consider requiring that this is at least as great asauto_merge_dilation
, to ensure a user hasn't mixed up these values, as I'd anticipate that this would always want to be set at least as great as theauto_...
counterpart. Thoughts, @TLSteinacker ? This is to be required if theregionGrouping
is such that there's no filtering (i.e., minimum separation of 0, or some yet-to-be-determined other specification). This is to be prohibited if the region grouping is "trivial"allo_merge_groups
: a list-of-lists, like theregionGrouping
groups value, specifying the groups of timepoints that are allowed to have their spot ROIs merge. The state of requiring/prohibiting/allowing this is that same as forallo_merge_dilation
.imagingRounds
section of the config.there would also be another relation that should hold in the config: a) if the proximity filter is permissive anything grouped together for merge should be grouped together for (protection from) filtration, but not necessarily vice-versa (i.e., don't necessarily merge what's permitted to be close together) b) if the proximity filter is prohibitive, anything grouped together for filtration must not be grouped together for merge, but not necessarily vice-verse (i.e., don't necessarily merge what's permitted to be close together)
Note that these two properties converge on the same absence of implication (don't necessarily merge what's permitted to be close together), which accords with the idea that merging the ROIs is a stronger/more specific thing than simply permitting them to be close together.