BodenmillerGroup / steinbock

A toolkit for processing multiplexed tissue images
https://bodenmillergroup.github.io/steinbock
MIT License
49 stars 14 forks source link

Bug fix: set mask numpy dtype output as `uint32` instead of `uint16` #266

Closed matt-sd-watson closed 3 weeks ago

matt-sd-watson commented 3 weeks ago

We have noticed errors in mask outputs for certain datasets such as high-density tissue or 5um tissue modes where the number of mask objects can exceed the max for unsigned 16-byte integers of 65535. For example, masks may start to skip integers for mask ID objects which can cause errors in downstream analysis.

Would be preferred if the default mask dtype on export would be unsigned 32 byte integers so that these masks with many objects can be processed consistently.

matt-sd-watson commented 3 weeks ago

duplicate of #207