Skip to content

Conversation

@jaspreetishar
Copy link
Contributor

@jaspreetishar jaspreetishar commented Aug 14, 2025

In this PR:

  1. Added _dissolve_by_category() method to melt a GeoDataFrame by a specified column

  2. Updated calc_nbp() API in the nbhd module

  3. Modified generate_hex_grid() API to accept diameter instead of radius

  4. Filtered out hexagon tiles with fewer than 5 cells

  5. Enabled creation of a clustergram for neighborhood niches and cell clusters/types in niche_clustering.ipynb

  6. Enabled syncing landscape–clustergram widget view with the hexagonal neighborhood layer using obs_store

  7. Updated relevant Pytests

jaspreetishar and others added 30 commits August 4, 2025 13:19
* Add hex tile clustering

* initial set up

* Add niche clustering example notebook

* adding gdf_niche/gdf_hex clustergram visual

* adding niche labels as meta_row for clustergram

* replacing percentages with proportions in calc_nbp

* fixing function name

* fixing return for prepare_nbhd_for_clustering

* rearranging notebook

* making prepare_nbhd_for_clustering inclusive of other nbhd types

* using inclusive gdf names

* clustergram transposed

* visualizing in landscape viewer: initial setup

* moving imports to the start
…hub.com:broadinstitute/celldega into DEGA-111-NBP-Cell-Cluster-Type-Niche-Clustering
…-to-widgets

feat: add entity support to widgets
@jaspreetishar
Copy link
Contributor Author

jaspreetishar commented Sep 30, 2025

@cornhundred, in this PR:

  1. Added _dissolve_by_category() to melt a GeoDataFrame by a specified column
  2. Updated calc_nbp() API in the nbhd module
  3. Changed generate_hex_grid() API to accept diameter instead of radius
  4. Filtered out hexagon tiles with fewer than 5 cells
  5. Enabled creation of a heatmap for hextile neighborhood niches and cell clusters/types in niche_clustering.ipynb
  6. Added row_entity and col_entity arguments when initializing dega.clust.Matrix()
  7. Synced the landscape–heatmap widget view with the hextile neighborhood niches layer via obs_store. Also, currently hardcoding "cell_clusters" and "nbhd" as row_entity and col_entity
  8. Further cleaned up niche_clustering.ipynb by factoring out additional helper functions for clarity and reuse
  9. Enabled Trx-unassignment-proportion per Hextile Landscape View
  10. Updated relevant Pytests

@jaspreetishar jaspreetishar marked this pull request as ready for review September 30, 2025 13:01
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

Successfully merging this pull request may close these issues.

3 participants