You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"This notebook shows you how to use the `convert_cell_browser_project_to_anndata` function, which allows you to take an existing project, published in https://cells.ucsc.edu/ and:\n",
39
-
"1. Convert it into the AnnData format that is supported by Vitessce\n",
40
-
"2. Save the AnnData object as a Zarr store\n",
41
-
"3. Configure Vitessce with the AnnData-Zarr store\n",
42
-
"4. Render a Vitessce widget based on the config (step 3) directly in the notebook.\n",
43
-
"\n",
44
-
"The dataset that you choose to convert needs to be a valid UCSC Cell Browser \"project\", accessible from https://cells.ucsc.edu/, with a configuration available in https://github.com/ucscGenomeBrowser/cellbrowser-confs\n",
45
-
"\n",
46
-
"The `convert_cell_browser_project_to_anndata` function takes the name of that project as an input. For example, to convert this project, https://cells.ucsc.edu/?ds=adultPancreas, you will neeed to pass `\"adultPancreas\"` as the project name."
47
-
]
48
-
},
49
-
{
50
-
"cell_type": "code",
51
-
"execution_count": null,
52
-
"id": "bkHC",
53
-
"metadata": {},
54
-
"outputs": [],
55
-
"source": [
56
-
"import os\n",
57
-
"import json\n",
58
-
"from os.path import join\n",
59
-
"from vitessce import (\n",
60
-
" convert_cell_browser_project_to_anndata,\n",
61
-
" AnnDataWrapper,\n",
62
-
" VitessceConfig,\n",
63
-
")\n",
64
-
"from vitessce.data_utils import VAR_CHUNK_SIZE"
65
-
]
66
-
},
67
-
{
68
-
"cell_type": "markdown",
69
-
"id": "lEQa",
70
-
"metadata": {
71
-
"marimo": {
72
-
"config": {
73
-
"hide_code": true
74
-
}
75
-
}
76
-
},
77
-
"source": [
78
-
"## 1. Convert UCSC Cell Browser project to a format that is supported by Vitessce\n",
79
-
"#### Output:\n",
80
-
"An AnnData object"
81
-
]
82
-
},
83
-
{
84
-
"cell_type": "code",
85
-
"execution_count": null,
86
-
"id": "PKri",
87
-
"metadata": {},
88
-
"outputs": [],
89
-
"source": [
90
-
"# Example run, coverting \"adultPancreas\" project:\n",
"This notebook shows you how to use the `convert_cell_browser_project_to_anndata` function, which allows you to take an existing project, published in https://cells.ucsc.edu/ and:\n",
29
+
"1. Convert it into the AnnData format that is supported by Vitessce\n",
30
+
"2. Save the AnnData object as a Zarr store\n",
31
+
"3. Configure Vitessce with the AnnData-Zarr store\n",
32
+
"4. Render a Vitessce widget based on the config (step 3) directly in the notebook.\n",
33
+
"\n",
34
+
"The dataset that you choose to convert needs to be a valid UCSC Cell Browser \"project\", accessible from https://cells.ucsc.edu/, with a configuration available in https://github.com/ucscGenomeBrowser/cellbrowser-confs\n",
35
+
"\n",
36
+
"The `convert_cell_browser_project_to_anndata` function takes the name of that project as an input. For example, to convert this project, https://cells.ucsc.edu/?ds=adultPancreas, you will neeed to pass `\"adultPancreas\"` as the project name."
37
+
]
38
+
},
39
+
{
40
+
"cell_type": "code",
41
+
"execution_count": null,
42
+
"id": "bkHC",
43
+
"metadata": {},
44
+
"outputs": [],
45
+
"source": [
46
+
"import os\n",
47
+
"import json\n",
48
+
"from os.path import join\n",
49
+
"from vitessce import (\n",
50
+
" convert_cell_browser_project_to_anndata,\n",
51
+
" AnnDataWrapper,\n",
52
+
" VitessceConfig,\n",
53
+
")\n",
54
+
"from vitessce.data_utils import VAR_CHUNK_SIZE"
55
+
]
56
+
},
57
+
{
58
+
"cell_type": "markdown",
59
+
"id": "lEQa",
60
+
"metadata": {
61
+
"marimo": {
62
+
"config": {
63
+
"hide_code": true
64
+
}
65
+
}
66
+
},
67
+
"source": [
68
+
"## 1. Convert UCSC Cell Browser project to a format that is supported by Vitessce\n",
69
+
"#### Output:\n",
70
+
"An AnnData object"
71
+
]
72
+
},
73
+
{
74
+
"cell_type": "code",
75
+
"execution_count": null,
76
+
"id": "PKri",
77
+
"metadata": {},
78
+
"outputs": [],
79
+
"source": [
80
+
"# Example run, coverting \"adultPancreas\" project:\n",
0 commit comments