Skip to content

Commit fe7e10b

Browse files
Merge pull request #85 from scverse/fix/download_paths
fix download urls
2 parents 43a92d9 + 1d91a0c commit fe7e10b

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

notebooks/examples/densenet.ipynb

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -138,11 +138,9 @@
138138
"id": "01df1f51-29db-4955-8189-42648e5cd95e",
139139
"metadata": {},
140140
"source": [
141-
"We will need two Zarr files, one for Xenium data and one for Visium data. You can obtain these files by running [this notebook](https://github.com/scverse/spatialdata-notebooks/blob/main/notebooks/paper_reproducibility/xenium_and_visium.ipynb).\n",
141+
"You can download the processed Visium and Xenium data (already aligned and Xenium with already the celltype information) from here: [Visium dataset](https://s3.embl.de/spatialdata/spatialdata-sandbox/visium_associated_xenium_io_aligned.zip), [Xenium dataset](https://s3.embl.de/spatialdata/spatialdata-sandbox/xenium_rep1_io_aligned.zip). In alternative you can obtain the data by running [this analysis notebook](https://github.com/scverse/spatialdata-notebooks/blob/main/notebooks/paper_reproducibility/00_xenium_and_visium.ipynb).\n",
142142
"\n",
143-
"Alternatively, you can download a zipped version of the data from here: [Xenium data](https://s3.embl.de/spatialdata/spatialdata-sandbox/xenium_rep1_io.zip), [Visium data](https://s3.embl.de/spatialdata/spatialdata-sandbox/visium_associated_xenium_io.zip). \n",
144-
"\n",
145-
"If you download the data, please make it discoverable in the paths specified next (you can use symlink to achieve this)."
143+
"Please rename the files to `visium_aligned.zarr` and `xenium_aligned.zarr` and place them in the same folder as this notebook (or use symlinks to make the data accessible)."
146144
]
147145
},
148146
{
@@ -179,14 +177,8 @@
179177
}
180178
],
181179
"source": [
182-
"print(\"current working directory:\", os.getcwd())\n",
183-
"SPATIALDATA_SANDBOX_PATH = \"../../../spatialdata-sandbox\"\n",
184-
"assert os.path.isdir(\n",
185-
" SPATIALDATA_SANDBOX_PATH\n",
186-
"), f\"{SPATIALDATA_SANDBOX_PATH} not found, please use symlinks to make it available\"\n",
187-
"\n",
188-
"XENIUM_SDATA_PATH = os.path.join(SPATIALDATA_SANDBOX_PATH, \"xenium_rep1_io/data_aligned.zarr\")\n",
189-
"VISIUM_SDATA_PATH = os.path.join(SPATIALDATA_SANDBOX_PATH, \"visium_associated_xenium_io/data_aligned.zarr\")\n",
180+
"XENIUM_SDATA_PATH = \"visium_aligned.zarr\"\n",
181+
"VISIUM_SDATA_PATH = \"xenium_aligned.zarr\"\n",
190182
"\n",
191183
"assert os.path.isdir(XENIUM_SDATA_PATH)\n",
192184
"assert os.path.isdir(VISIUM_SDATA_PATH)\n",

notebooks/examples/napari_rois.ipynb

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@
6565
"start_time": "2023-04-10T21:55:20.519549Z"
6666
},
6767
"collapsed": false,
68+
"jupyter": {
69+
"outputs_hidden": false
70+
},
6871
"tags": []
6972
},
7073
"outputs": [],
@@ -85,10 +88,15 @@
8588
"id": "c9970140-afdd-499b-94f8-d6dd50792dac",
8689
"metadata": {
8790
"collapsed": false,
91+
"jupyter": {
92+
"outputs_hidden": false
93+
},
8894
"tags": []
8995
},
9096
"source": [
91-
"You can download the data from here: [Visium dataset](https://s3.embl.de/spatialdata/spatialdata-sandbox/visium_associated_xenium_io.zip). Please rename the file to `visium.zarr` and place it in the same folder as this notebook (or use symlinks to make the data accessible)."
97+
"You can download the processed Visium data (already aligned) from here: [Visium dataset](https://s3.embl.de/spatialdata/spatialdata-sandbox/visium_associated_xenium_io_aligned.zip). In alternative you can obtain the data by running [this analysis notebook](https://github.com/scverse/spatialdata-notebooks/blob/main/notebooks/paper_reproducibility/00_xenium_and_visium.ipynb).\n",
98+
"\n",
99+
"Please rename the file to `visium_aligned.zarr` and place it in the same folder as this notebook (or use symlinks to make the data accessible)."
92100
]
93101
},
94102
{
@@ -100,7 +108,7 @@
100108
},
101109
"outputs": [],
102110
"source": [
103-
"visium_sdata = sd.read_zarr(\"visium.zarr\")"
111+
"visium_sdata = sd.read_zarr(\"visium_aligned.zarr\")"
104112
]
105113
},
106114
{

0 commit comments

Comments
 (0)