diff --git a/examples/tools/sliding_windows.ipynb b/examples/tools/sliding_windows.ipynb index 873f342..eae2b2b 100644 --- a/examples/tools/sliding_windows.ipynb +++ b/examples/tools/sliding_windows.ipynb @@ -2,12 +2,15 @@ "cells": [ { "cell_type": "code", - "execution_count": 1, - "metadata": {}, + "metadata": { + "ExecuteTime": { + "end_time": "2026-02-13T09:50:23.078658300Z", + "start_time": "2026-02-13T09:50:23.031308505Z" + } + }, + "source": "%matplotlib inline\n", "outputs": [], - "source": [ - "%matplotlib inline" - ] + "execution_count": 1 }, { "cell_type": "markdown", @@ -15,21 +18,26 @@ "source": [ "# Analyse your spatial data using sliding windows\n", "\n", - "This example shows how to use {func}`squidpy.tl.sliding_window` to divide the \n", + "This example shows how to use {func}`squidpy.tl.sliding_window` to divide the\n", "obs of an {class}`anndata.AnnData` object into adjecent, potentially overlapping,\n", "windows." ] }, { "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], + "metadata": { + "ExecuteTime": { + "end_time": "2026-02-13T09:50:26.534619796Z", + "start_time": "2026-02-13T09:50:23.080199654Z" + } + }, "source": [ "import matplotlib.pyplot as plt\n", "\n", "import squidpy as sq" - ] + ], + "outputs": [], + "execution_count": 2 }, { "cell_type": "markdown", @@ -40,12 +48,17 @@ }, { "cell_type": "code", - "execution_count": 5, - "metadata": {}, - "outputs": [], + "metadata": { + "ExecuteTime": { + "end_time": "2026-02-13T09:50:26.658911926Z", + "start_time": "2026-02-13T09:50:26.582812443Z" + } + }, "source": [ "adata = sq.datasets.mibitof()" - ] + ], + "outputs": [], + "execution_count": 3 }, { "cell_type": "markdown", @@ -57,11 +70,47 @@ }, { "cell_type": "code", - "execution_count": 6, - "metadata": {}, + "metadata": { + "ExecuteTime": { + "end_time": "2026-02-13T09:50:26.743124584Z", + "start_time": "2026-02-13T09:50:26.672210505Z" + } + }, + "source": [ + "adata.obs" + ], "outputs": [ { "data": { + "text/plain": [ + " row_num point cell_id X1 center_rowcoord center_colcoord \\\n", + "3034-0 3086 23 2 60316.0 269.0 7.0 \n", + "3035-0 3087 23 3 60317.0 294.0 6.0 \n", + "3036-0 3088 23 4 60318.0 338.0 4.0 \n", + "3037-0 3089 23 6 60320.0 372.0 6.0 \n", + "3038-0 3090 23 8 60322.0 417.0 5.0 \n", + "... ... ... ... ... ... ... \n", + "47342-2 48953 16 1103 2779.0 143.0 1016.0 \n", + "47343-2 48954 16 1104 2780.0 814.0 1017.0 \n", + "47344-2 48955 16 1105 2781.0 874.0 1018.0 \n", + "47345-2 48956 16 1106 2782.0 257.0 1019.0 \n", + "47346-2 48957 16 1107 2783.0 533.0 1019.0 \n", + "\n", + " cell_size category donor Cluster batch library_id \n", + "3034-0 408.0 carcinoma 21d7 Epithelial 0 point23 \n", + "3035-0 408.0 carcinoma 21d7 Epithelial 0 point23 \n", + "3036-0 304.0 carcinoma 21d7 Imm_other 0 point23 \n", + "3037-0 219.0 carcinoma 21d7 Myeloid_CD11c 0 point23 \n", + "3038-0 303.0 carcinoma 21d7 Myeloid_CD11c 0 point23 \n", + "... ... ... ... ... ... ... \n", + "47342-2 283.0 carcinoma 90de Fibroblast 2 point16 \n", + "47343-2 147.0 carcinoma 90de Fibroblast 2 point16 \n", + "47344-2 142.0 carcinoma 90de Imm_other 2 point16 \n", + "47345-2 108.0 carcinoma 90de Fibroblast 2 point16 \n", + "47346-2 111.0 carcinoma 90de Fibroblast 2 point16 \n", + "\n", + "[3309 rows x 12 columns]" + ], "text/html": [ "
\n", "