Open gwaybio opened 3 years ago
Below is how pycytominer currently addresses this:
A complication here is that, in the case of multiple objects, there can be many relationship types-
I think the logic to detect and/or support all of them might be rough; we should consider how to handle each of them, and whether or not the user needs to pass a flag or a configuration or something to make it easier to decide.
Currently
cytominer_transport/_generator.py
combines objects based on "ImageNumber" and "ObjectNumber".Instead, we should consider combining objects by their appropriate "Parent{compartment}" and "Child{compartment}".
Pros
Cons
pandas.concat(axis=1)
https://github.com/cytomining/cytominer-transport/blob/056ced308c1d03790acdfb5a5e90f29a9fab0e4d/src/cytominer_transport/_generator.py#L64-L66
Notes