Skip to content

Commit

Permalink
Dega 197 fix s st bug (#62)
Browse files Browse the repository at this point in the history
* added buttons section to viz_state

* added example notebook

* v0.8.2 bug fix for sST

* added example to documentation
  • Loading branch information
cornhundred authored Jan 29, 2025
1 parent cca5181 commit d353837
Show file tree
Hide file tree
Showing 7 changed files with 152 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/assets/js/widget.js

Large diffs are not rendered by default.

140 changes: 140 additions & 0 deletions docs/examples/brief_notebooks/Visium-HD_Landscape_Mouse_Lung_FF.ipynb

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions js/ui/text_buttons.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,8 @@ export const make_button = (container, technology, text, color='blue', width=40,
if (text === 'IMG') {
if (technology === 'sst'){
callback = (event) => sst_img_button_callback(event, inst_deck, layers_obj)

// console.log('here!!!!!!!!!!')
} else {
callback = (event) => ist_img_button_callback(event, inst_deck, layers_obj, viz_state)
}
Expand Down
6 changes: 6 additions & 0 deletions js/viz/landscape_sst.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@ export const landscape_sst = async (

await set_dimensions(viz_state, base_url, 'cells')

viz_state.buttons = {}
viz_state.buttons.blue = '#8797ff'
viz_state.buttons.gray = 'gray'
viz_state.buttons.light_gray = '#EEEEEE'
viz_state.buttons.buttons = {}

viz_state.genes = {}
viz_state.genes.color_dict_gene = {}
viz_state.genes.gene_names = []
Expand Down
1 change: 1 addition & 0 deletions mkdocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ nav:
- Landscape-Matrix View Xenium: examples/brief_notebooks/Landscape-Matrix_Xenium.ipynb
- Pre-Process LandscapeFiles: examples/brief_notebooks/Pre-process_Xenium_V1_human_Pancreas_FFPE_outs.ipynb
- UMAP-Cluster_Pancreas_Xenium: examples/brief_notebooks/UMAP-Cluster_Pancreas_Xenium.ipynb
- Visium-HD_Landscape_Mouse_Lung_FF: examples/brief_notebooks/Visium-HD_Landscape_Mouse_Lung_FF.ipynb
# - Tutorials:
# - examples/Landscape_View_Xenium.ipynb

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "celldega",
"version": "0.8.1",
"version": "0.8.2",
"type": "module",
"scripts": {
"dev": "npm run build -- --sourcemap=inline --watch",
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "celldega"
version = "0.8.1"
version = "0.8.2"
dependencies = [
"anywidget==0.9.6",
"pandas~=2.2.2",
Expand Down

0 comments on commit d353837

Please sign in to comment.