Skip to content

Commit 1939da9

Browse files
cornhundredCopilot
andauthored
DEGA-297-update-docs (#211)
* update widget.js docs asset * working on gallery * working on gallery * adding Pancreas gallery example * updating gallery * adding tutorial notebooks * added chrmoium tutorial notebook * adding tutorial notebooks * added notebooks * removed print statement * Update docs/assets/js/gallery_visium_hd_pancreas.js Co-authored-by: Copilot <[email protected]> * Update docs/assets/js/gallery_visium_hd_human_kidney.js Co-authored-by: Copilot <[email protected]> --------- Co-authored-by: Copilot <[email protected]>
1 parent 1adca00 commit 1939da9

18 files changed

+3094
-2133
lines changed
141 KB
Loading
113 KB
Loading
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
import celldega from './widget.js';
2+
document.addEventListener("DOMContentLoaded", async () => {
3+
4+
const landscape_el = document.getElementById('landscape-visium-hd-human-kidney');
5+
6+
if (window.location.pathname.endsWith('gallery_visium_hd_human_kidney/')){
7+
8+
console.log('hi!')
9+
// Use the imported functions
10+
const token = '';
11+
const ini_zoom = -3.5;
12+
const ini_x = 3000;
13+
const ini_y = 3000;
14+
const ini_z = 0;
15+
const base_url = 'https://raw.githubusercontent.com/broadinstitute/Celldega_Visium_HD_Human_Kidney_FFPE/main/Visium_HD_Human_Kidney_FFPE';
16+
17+
const landscape = await celldega.landscape_sst(
18+
// ini_model
19+
{},
20+
// element
21+
landscape_el,
22+
// base_url
23+
base_url,
24+
// token
25+
token,
26+
// initial coordinates
27+
ini_x,
28+
ini_y,
29+
ini_z,
30+
ini_zoom,
31+
// square_tile_size (hardwired to 1.4 for this dataset)
32+
1.4,
33+
// dataset_name
34+
'',
35+
// width
36+
'100%',
37+
// height
38+
'100%',
39+
// creds
40+
{},
41+
);
42+
43+
}
44+
45+
});
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
import celldega from './widget.js';
2+
document.addEventListener("DOMContentLoaded", async () => {
3+
4+
const landscape_el = document.getElementById('landscape-visium-hd-pancreas');
5+
6+
if (window.location.pathname.endsWith('gallery_visium_hd_pancreas/')){
7+
8+
console.log('hi!')
9+
// Use the imported functions
10+
const token = '';
11+
const ini_zoom = -3.5;
12+
const ini_x = 3000;
13+
const ini_y = 3000;
14+
const ini_z = 0;
15+
const base_url = 'https://raw.githubusercontent.com/broadinstitute/celldega_Visium_HD_Human_Pancreas_binned_outputs/main/Visium_HD_Human_Pancreas_binned_outputs';
16+
17+
const landscape = await celldega.landscape_sst(
18+
// ini_model
19+
{},
20+
// element
21+
landscape_el,
22+
// base_url
23+
base_url,
24+
// token
25+
token,
26+
// initial coordinates
27+
ini_x,
28+
ini_y,
29+
ini_z,
30+
ini_zoom,
31+
// square_tile_size (hardwired to 1.4 for this dataset)
32+
1.4,
33+
// dataset_name
34+
'',
35+
// width
36+
'100%',
37+
// height
38+
'100%',
39+
// creds
40+
{},
41+
);
42+
43+
}
44+
45+
});

docs/examples/index.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,17 @@
11
# Jupyter Notebook Examples
22

3+
## Tutorials
4+
[Scanpy-Squidpy_Xenium_Pancreas](tutorial_notebooks/Scanpy-Squidpy_Xenium_Pancreas.ipynb)
5+
6+
[Scanpy_Chromium](tutorial_notebooks/Scanpy_Chromium.ipynb)
7+
8+
[Single-Cell Clustergram Chromium](tutorial_notebooks/Single-Cell_Clustergram_Chromium.ipynb)
9+
310
## Brief Notebooks
411
[Landscape View Xenium](brief_notebooks/Landscape_View_Xenium.ipynb)
512

613
[Mouse-Brain_Alpha-Shape-Neighborhood](brief_notebooks/Mouse-Brain_Alpha-Shape-Neighborhood.ipynb)
714

8-
[Custom Segmentation Visualization in Celldega](brief_notebooks/Custom_Segmentation.ipynb)
15+
[Custom Segmentation Visualization in Celldega](brief_notebooks/Custom_Segmentation.ipynb)
16+
17+
[Landscape-Clustergram_Visium-HD_Human_Lung_Cancer](brief_notebooks/Landscape-Clustergram_Visium-HD_Human_Lung_Cancer.ipynb)

docs/examples/tutorial_notebooks/Scanpy-Squidpy_Xenium_Pancreas.ipynb

Lines changed: 1079 additions & 0 deletions
Large diffs are not rendered by default.

docs/examples/tutorial_notebooks/Scanpy_Chromium.ipynb

Lines changed: 539 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)