Skip to content

Commit

Permalink
Merge pull request #45 from broadinstitute/DEGA-127-pass-in-initial-r…
Browse files Browse the repository at this point in the history
…egion

working on passing initial region
  • Loading branch information
cornhundred authored Dec 10, 2024
2 parents 684db51 + e269ca1 commit 964d1c5
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 86 deletions.
13 changes: 8 additions & 5 deletions js/viz/landscape_ist.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,11 +149,14 @@ export const landscape_ist = async (
viz_state.edit.visible = false
viz_state.edit.modify_index = null

const features = []

viz_state.edit.feature_collection = {
"type": "FeatureCollection",
"features": features
// check if viz_state.model.get('region') is equal to {}
if (Object.keys(viz_state.model.get('region')).length === 0) {
viz_state.model.set('region', {
'type': 'FeatureCollection',
'features': []
})
} else {
viz_state.edit.feature_collection = viz_state.model.get('region')
}

let background_layer = ini_background_layer(viz_state)
Expand Down
125 changes: 46 additions & 79 deletions notebooks/Landscape_View_Xenium.ipynb

Large diffs are not rendered by default.

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.5.0",
"version": "0.5.1",
"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.5.0"
version = "0.5.1"
dependencies = [
"anywidget==0.9.6",
"pandas~=2.2.2",
Expand Down

0 comments on commit 964d1c5

Please sign in to comment.