celldega 0.13.0-alpha.4 → 0.13.0-alpha.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -8
- package/package.json +2 -2
- package/src/celldega/static/widget.js +86 -84
package/README.md
CHANGED
|
@@ -31,22 +31,30 @@ apt update && apt install -y libvips libvips-tools libvips-dev
|
|
|
31
31
|
base_url = 'https://raw.githubusercontent.com/broadinstitute/celldega_Xenium_Prime_Human_Skin_FFPE_outs/main/Xenium_Prime_Human_Skin_FFPE_outs'
|
|
32
32
|
|
|
33
33
|
landscape_ist = dega.viz.Landscape(
|
|
34
|
-
technology=
|
|
35
|
-
ini_zoom
|
|
34
|
+
technology="Xenium",
|
|
35
|
+
ini_zoom=-4.5,
|
|
36
36
|
ini_x=6000,
|
|
37
37
|
ini_y=8000,
|
|
38
|
-
base_url
|
|
39
|
-
height
|
|
40
|
-
width=
|
|
38
|
+
base_url=base_url,
|
|
39
|
+
height=700,
|
|
40
|
+
width=600,
|
|
41
|
+
)
|
|
42
|
+
|
|
43
|
+
# Alternatively pass an AnnData object to auto-populate cell metadata
|
|
44
|
+
# including "leiden" clusters, colors and UMAP coordinates.
|
|
45
|
+
landscape_from_adata = dega.viz.Landscape(
|
|
46
|
+
base_url=base_url,
|
|
47
|
+
AnnData=adata,
|
|
41
48
|
)
|
|
42
49
|
|
|
43
50
|
file_path = 'https://raw.githubusercontent.com/broadinstitute/celldega_Xenium_Prime_Human_Skin_FFPE_outs/main/Xenium_Prime_Human_Skin_FFPE_outs/df_sig.parquet'
|
|
44
51
|
df = pd.read_parquet(file_path)
|
|
45
52
|
|
|
46
|
-
|
|
47
|
-
mat
|
|
53
|
+
mat = dega.clust.Matrix(df)
|
|
54
|
+
mat.cluster()
|
|
55
|
+
cgm = dega.viz.Clustergram(matrix=mat)
|
|
48
56
|
|
|
49
|
-
dega.viz.
|
|
57
|
+
dega.viz.landscape_clustergram(landscape_ist, cgm)
|
|
50
58
|
```
|
|
51
59
|
|
|
52
60
|

|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "celldega",
|
|
3
|
-
"version": "0.13.0-alpha.
|
|
3
|
+
"version": "0.13.0-alpha.6",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=16",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"jest": "^29.7.0",
|
|
55
55
|
"jest-environment-jsdom": "^29.7.0",
|
|
56
56
|
"jsdom": "^26.1.0",
|
|
57
|
-
"prettier": "
|
|
57
|
+
"prettier": "3.6.2"
|
|
58
58
|
},
|
|
59
59
|
"repository": {
|
|
60
60
|
"type": "git",
|