Skip to content
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

Request to update Vizgen Cell Boundaries Polygon generation #3

Closed
rushin682 opened this issue Sep 4, 2024 · 3 comments
Closed

Request to update Vizgen Cell Boundaries Polygon generation #3

rushin682 opened this issue Sep 4, 2024 · 3 comments

Comments

@rushin682
Copy link

Hello,

Thank you for a great repo and paper!

We noticed that for Vizgen aspect, creating of polygons (Line 140 - 152: preprocess/vizgen.py) uses the old cell boundaries h5 format. However, we have a parquet file for the cell boundaries. Is it possible to add a feature that can take the parquet file as input to create the polygons as well?

Thanks once again for your time. Looking forward to your response.

best,
Rushin

@chenyhvvvv
Copy link
Collaborator

Thank you for your interest! Can you show me a public dataset to let me try on it?

@devianggr
Copy link

Hi,

Maybe I can help Rushin to share the public dataset with the cell_boundaries.parquet file.
You can download the access dataset through this link:
https://info.vizgen.com/protein-co-detection-showcase?submissionGuid=2e012b62-62b4-4a7e-97d4-cbfbd0a7a903

Best,
Devi

@chenyhvvvv
Copy link
Collaborator

chenyhvvvv commented Sep 5, 2024

Hi, after trying and searching for reading parquet object of Vizgen, I can not find a proper package or code to read it in python. Directly using pandas can not work.
image
And there is little result of this and still an issue in satijalab/seurat#7080.

But instead, you can use Cellpose to segment the MIP DAPI image. The code include prepare_dapi_for_cellpose in preprocess/vizgen.py to provide MIP image of mosaic_DAPI_z[].tif and segment using script like

python preprocess/cellpose_dapi.py --dapi ./data/vizgen_mouse_brain/mosaic_DAPI_mip_resized.tif --out_dir ./data/vizgen_mouse_brain

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants