Skip to content

Commit 3bb701d

Browse files
committed
extend docs
1 parent b7f146d commit 3bb701d

13 files changed

Lines changed: 3350 additions & 1255 deletions

.pre-commit-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ repos:
2121
rev: v0.15.15
2222
hooks:
2323
- id: ruff-check
24+
exclude: ^docs/source/.*/(?:tips|export)\.ipynb$
2425
- id: ruff-format
2526
- repo: https://github.com/pre-commit/mirrors-mypy
2627
rev: v2.1.0

docs/source/index.rst

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,25 +6,24 @@ transcriptomics from in situ capture technologies (but also works for
66
imaging-based technologies).
77

88
It is easily integratable with the `scverse <https://github.com/scverse>`_
9-
(i.e. `scanpy` and `squidpy`) by exporting data in
9+
(i.e., `scanpy` and `squidpy`) by exporting data in
1010
`AnnData <https://anndata.readthedocs.io/>`_ or
1111
`SpatialData <https://spatialdata.scverse.org/>`_ format.
1212

1313
Citations
1414
---------
1515

16-
If you are using `sainsc` for your research please cite
16+
If you are using `sainsc` for your research, please cite
1717

1818
N. Müller-Bötticher, S. Tiesmeyer, R. Eils, N. Ishaque, "Sainsc: A Computational Tool
19-
for Segmentation-Free Analysis of In Situ Capture Data" *Small Methods* (2025)
20-
https://doi.org/10.1002/smtd.202401123
19+
for Segmentation-Free Analysis of In Situ Capture Data" *Small Methods* 9, 2401123 (2025)
20+
doi: `10.1002/smtd.202401123 <https://doi.org/10.1002/smtd.202401123>`_
2121

2222
.. toctree::
23-
:maxdepth: 1
23+
:maxdepth: 2
2424
:caption: Contents:
2525

2626
self
2727
quickstart
2828
installation
29-
usage
3029
tutorials/index

docs/source/quickstart.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
],
8484
"source": [
8585
"# location of the Stereo-seq data\n",
86-
"data_path = Path(\"path/to/StereoSeq/data\")\n",
86+
"data_path = Path(\"path/to/stereoseq_data\")\n",
8787
"\n",
8888
"brain = read_StereoSeq(\n",
8989
" data_path / \"Mouse_brain_Adult_GEM_bin1.tsv.gz\", resolution=500, n_threads=8\n",
@@ -331,9 +331,9 @@
331331
],
332332
"metadata": {
333333
"kernelspec": {
334-
"display_name": "Python 3",
334+
"display_name": "Python [conda env:sainsc]",
335335
"language": "python",
336-
"name": "python3"
336+
"name": "conda-env-sainsc-py"
337337
},
338338
"language_info": {
339339
"codemirror_mode": {
@@ -345,7 +345,7 @@
345345
"name": "python",
346346
"nbconvert_exporter": "python",
347347
"pygments_lexer": "ipython3",
348-
"version": "3.10.14"
348+
"version": "3.11.10"
349349
}
350350
},
351351
"nbformat": 4,

docs/source/tutorials/VisiumHD_CRC.ipynb

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
"tags": []
2020
},
2121
"source": [
22-
"In this tutorial we will look at a colorectal cancer (CRC) sample profiled using VisiumHD. The data is available from the 10X website (see [here](https://www.10xgenomics.com/datasets/visium-hd-cytassist-gene-expression-libraries-of-human-crc)).\n",
22+
"In this tutorial, we will look at a colorectal cancer (CRC) sample profiled using VisiumHD. The data is available from the 10x Genomics website (see [here](https://www.10xgenomics.com/datasets/visium-hd-cytassist-gene-expression-libraries-of-human-crc)).\n",
2323
"\n",
24-
"To follow along you will need to download the data and install some additional packages;\n",
24+
"To follow along, you will need to download the data and install some additional packages;\n",
2525
"`scanpy` and `spatialdata_io`."
2626
]
2727
},
@@ -116,9 +116,11 @@
116116
"tags": []
117117
},
118118
"source": [
119-
"First we will generate cell type signature based on the 16 µm bins VisiumHD. Theoretically this should also work when using the 8 µm bins or segmentation-based cells. The signatures are then later used to map the cell types to the original 2 µm resolution.\n",
119+
"First, we will generate cell-type signatures based on the 16 µm bins in VisiumHD.\n",
120+
"Theoretically, this should also work when using the 8 µm bins or segmentation-based cells.\n",
121+
"The signatures are then later used to map the cell types to the original 2 µm resolution.\n",
120122
"\n",
121-
"This whole section can be replaced by your favorite single-cell workflow. We will follow a simple workflow here as this is not the main purpose of this tutorial."
123+
"This whole section can be replaced by your favorite single-cell workflow. We will follow a simple workflow here, as this is not the main purpose of this tutorial."
122124
]
123125
},
124126
{
@@ -230,7 +232,9 @@
230232
"tags": []
231233
},
232234
"source": [
233-
"Now we apply our favorite workflow to find clusters/cell types. Remember that you can adjust the processing here to your liking! For example you could switch to spatially variable genes instead of highly variable."
235+
"Now we apply our favorite workflow to find clusters/cell types.\n",
236+
"Remember that you can adjust the processing here to your liking!\n",
237+
"For example, you could switch to spatially variable genes instead of highly variable."
234238
]
235239
},
236240
{
@@ -352,7 +356,9 @@
352356
"source": [
353357
"Now we are ready to generate the cell type signatures.\n",
354358
"\n",
355-
"The only thing to keep in mind if you don't follow the workflow above is that the signatures should be non-negative i.e. they should not be generated from z-scores or Pearson residuals, etc. which does not mean that you can't use these methods to do the cell typing just make sure to use the log-transformed counts to calculate the signatures.\n",
359+
"The only thing to keep in mind if you don't follow the workflow above is that the signatures should be non-negative, i.e., they should not be generated from z-scores or Pearson residuals, etc.\n",
360+
"This does not mean that you can't use these methods to do the cell typing.\n",
361+
"Just make sure to use the log-transformed counts to calculate the signatures.\n",
356362
"\n",
357363
"Here, we will only use the highly variable genes."
358364
]
@@ -609,9 +615,9 @@
609615
"tags": []
610616
},
611617
"source": [
612-
"To compare the cell typing we will plot the unbinned and binned data next to each other.\n",
618+
"To compare the cell typing, we will plot the unbinned and binned data next to each other.\n",
613619
"\n",
614-
"First lets get the images for the cell typing of the unbinned data. "
620+
"First, let's get the images for the cell typing of the unbinned data. "
615621
]
616622
},
617623
{
@@ -692,7 +698,8 @@
692698
"tags": []
693699
},
694700
"source": [
695-
"Now we are ready to compare the results. We will also include the KDE as it gives us an orientation of what the tissue looks like. "
701+
"Now we are ready to compare the results.\n",
702+
"We will also include the KDE, as it gives us an orientation of what the tissue looks like. "
696703
]
697704
},
698705
{

docs/source/tutorials/celltyping.ipynb

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

0 commit comments

Comments
 (0)