Skip to content

Commit 44fc9a5

Browse files
authored
Fix notebooks (#242)
Co-authored-by: flying-sheep <[email protected]>
1 parent c375a44 commit 44fc9a5

9 files changed

+446
-560
lines changed

docs/notebooks/anndata_getting_started.ipynb

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

docs/notebooks/basic-scrna-tutorial.ipynb

Lines changed: 314 additions & 407 deletions
Large diffs are not rendered by default.
-23.5 MB
Binary file not shown.

docs/notebooks/scverse_data_backed.ipynb

Lines changed: 66 additions & 42 deletions
Large diffs are not rendered by default.

docs/notebooks/scverse_data_interoperability.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@
121121
"name": "python",
122122
"nbconvert_exporter": "python",
123123
"pygments_lexer": "ipython3",
124-
"version": "3.12.5"
124+
"version": "3.12.11"
125125
}
126126
},
127127
"nbformat": 4,

docs/notebooks/tutorial_axes_anndata_mudata.ipynb

Lines changed: 41 additions & 87 deletions
Large diffs are not rendered by default.

docs/notebooks/tutorial_concatenation_anndata_mudata.ipynb

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,11 @@
6161
{
6262
"data": {
6363
"text/plain": [
64-
"['brain3k_multiome',\n",
65-
" 'pbmc3k_multiome',\n",
66-
" 'pbmc5k_citeseq',\n",
64+
"['pbmc10k_multiome',\n",
6765
" 'brain9k_multiome',\n",
68-
" 'pbmc10k_multiome']"
66+
" 'brain3k_multiome',\n",
67+
" 'pbmc5k_citeseq',\n",
68+
" 'pbmc3k_multiome']"
6969
]
7070
},
7171
"execution_count": 2,
@@ -119,11 +119,11 @@
119119
"name": "stderr",
120120
"output_type": "stream",
121121
"text": [
122-
"/home/runner/miniconda3/envs/tutorials/lib/python3.12/site-packages/anndata/_core/anndata.py:1756: UserWarning: Variable names are not unique. To make them unique, call `.var_names_make_unique`.\n",
122+
"/home/runner/miniconda3/envs/tutorials/lib/python3.12/site-packages/anndata/_core/anndata.py:1793: UserWarning: Variable names are not unique. To make them unique, call `.var_names_make_unique`.\n",
123123
" utils.warn_names_duplicates(\"var\")\n",
124-
"/home/runner/miniconda3/envs/tutorials/lib/python3.12/site-packages/anndata/_core/anndata.py:1756: UserWarning: Variable names are not unique. To make them unique, call `.var_names_make_unique`.\n",
124+
"/home/runner/miniconda3/envs/tutorials/lib/python3.12/site-packages/anndata/_core/anndata.py:1793: UserWarning: Variable names are not unique. To make them unique, call `.var_names_make_unique`.\n",
125125
" utils.warn_names_duplicates(\"var\")\n",
126-
"/home/runner/miniconda3/envs/tutorials/lib/python3.12/site-packages/mudata/_core/mudata.py:915: UserWarning: var_names are not unique. To make them unique, call `.var_names_make_unique`.\n",
126+
"/home/runner/miniconda3/envs/tutorials/lib/python3.12/site-packages/mudata/_core/mudata.py:947: UserWarning: var_names are not unique. To make them unique, call `.var_names_make_unique`.\n",
127127
" warnings.warn(\n"
128128
]
129129
}
@@ -471,7 +471,7 @@
471471
" ...,\n",
472472
" [0., 0., 0., ..., 0., 0., 0.],\n",
473473
" [0., 0., 0., ..., 0., 0., 0.],\n",
474-
" [0., 0., 0., ..., 0., 0., 0.]], dtype=float32)"
474+
" [0., 0., 0., ..., 0., 0., 0.]], shape=(700, 1655), dtype=float32)"
475475
]
476476
},
477477
"execution_count": 16,
@@ -491,7 +491,7 @@
491491
{
492492
"data": {
493493
"text/plain": [
494-
"False"
494+
"np.False_"
495495
]
496496
},
497497
"execution_count": 17,
@@ -948,7 +948,7 @@
948948
"name": "python",
949949
"nbconvert_exporter": "python",
950950
"pygments_lexer": "ipython3",
951-
"version": "3.12.5"
951+
"version": "3.12.11"
952952
},
953953
"vscode": {
954954
"interpreter": {

environment.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ dependencies:
1414
- scanpy>=1.10
1515
- scrublet
1616
- leidenalg
17-
# We need this commit: https://github.com/saezlab/decoupler-py/commit/0b3d9a975e06230ebbc32a6f97810be1730b8562
18-
- decoupler @ git+https://github.com/saezlab/decoupler-py.git
17+
- decoupler
1918
- celltypist
2019
- seaborn
2120
- mudata

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ select = [
8888
"RUF100", # Report unused noqa directives
8989
]
9090
ignore = [
91+
# dict() syntax is fine
92+
"C408",
9193
# line too long -> we accept long comment lines; formatter gets rid of long code lines
9294
"E501",
9395
# Do not assign a lambda expression, use a def -> lambda expression assignments are convenient

0 commit comments

Comments
 (0)