-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Boundary and feature formats #35
Comments
We can use the pandas dataframe for the features. |
For boundaries, could we use a label map instead? |
@cdeepakroy Label maps are fine. Great for supporting additional processing but not ingestion friendly. It looks like we are going to have programmatic commits of the boundary polylines so an intermediate ingestion-friendly format is probably not needed. |
Compression will be important to keep the label image sizes down. LZW should work great for this. |
For label maps something like run-length encoding will save a lot of space since i would exprect these label maps to be quite sparse in number of non-zero valued pixels. |
They will compress very nicely. Still may want to go with single or uint32 types here for when they are in memory. |
@slee172 - please test performance for reading / writing features to HDF5. Let's get some insights from @cdeepakroy on how the features will stream out of the pipeline. Tiles are processed in parallel - so will each tile generate a unique HDF5? Should we try to aggregate the features from multiple tiles into 1 file per slide? HDF5 provides internal structure to provide random access, so if we aggregate tiles we should organize the features for efficient random access. |
@cooperlab I've got the same issue when writing features to HDF5. For 3 slides, it took about 30 min on python, but it took about less than 1 min on c++. I just used c++ instead of python when writing. @cdeepakroy could you inform me a way of processing features when using HDF5 as @cooperlab mentioned? |
@slee172 that is a significant difference. Is the interface for writing HDF5 clear, or is it possible we are misusing it and writing 1 record/row at a time? |
@cooperlab The python version I used directly writes the features into HDF5s using h5py package, but c++ version uses thread when processing slides. This is one different between them. I would say we can improve the python version when using multithread on it, but we could find another way if there is. |
@cooperlab What kind of query operations would be doing mostly?
Any other common query use cases? |
I think that covers the spatial query cases nicely. It's mostly about 1. serving up or analyzing data relevant to the field of view or 2. tile-based parallelization of analyses that are downstream of feature extraction. |
Define the formats to be produced by object segmentation and feature extraction.
Boundaries - will need a function to convert a list of 2 x N arrays (x,y) to some format for consumption into Girder.
Features - how to link the feature names to the rows of a K x N array. Would these be consumed into Girder or kept as arrays on disk?
The text was updated successfully, but these errors were encountered: