Skip to content

Commit

Permalink
add usage docs
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasmueboe committed Jul 16, 2024
1 parent 77c59ad commit 7a2b4ae
Show file tree
Hide file tree
Showing 7 changed files with 1,107 additions and 7 deletions.
2 changes: 2 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ repos:
rev: v4.6.0
hooks:
- id: check-added-large-files
exclude: "usage.ipynb"
- id: check-case-conflict
- id: check-toml
- id: check-yaml
Expand Down Expand Up @@ -42,6 +43,7 @@ repos:
rev: v2.3.0
hooks:
- id: codespell
exclude_types: ["jupyter"]
additional_dependencies:
- tomli
- repo: https://github.com/google/yamlfmt
Expand Down
8 changes: 8 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# setuptools-scm includes all tracked files by default in sdist

# exclude docs as it contains large files
prune docs

# exclude unnecessary configs
exclude .pre-commit-config.yaml .readthedocs.yaml .yamlfmt.yaml
prune .github
3 changes: 3 additions & 0 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,11 @@
"sphinx.ext.napoleon",
"autoapi.extension",
"sphinx.ext.mathjax",
"myst_nb",
]

nb_execution_mode = "off"


autodoc_typehints = "none"
autodoc_typehints_format = "short"
Expand Down
6 changes: 3 additions & 3 deletions docs/source/quickstart.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ The data can be filtered, subset, and cropped to adjust the desired field of vie
genes.

In the next step the kernel for kernel density estimation (KDE) is defined and
cell types are assigned to each pixel using cell type gene
cell types are assigned to each pixel using cell-type gene
expression signatures from e.g. single-cell RNAseq.

Otherwise you can find the local maxima of the KDE and treat these as proxies for cells.
Expand All @@ -19,5 +19,5 @@ spatial methods (e.g. using `scanpy <https://scanpy.readthedocs.io/en/stable/>`_
Along the way you will want to (and should) generate a lot of plots to check your
results.

For a more concrete example of what a workflow can look like we will provide example
notebooks soon.
For a more concrete example of what a workflow looks like check out the
:doc:`usage` guide.
1,083 changes: 1,083 additions & 0 deletions docs/source/usage.ipynb

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions docs/source/usage.rst

This file was deleted.

10 changes: 8 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,14 @@ classifiers = [

[project.optional-dependencies]
spatialdata = ["spatialdata>=0.1"]
docs = ["sphinx", "sphinx-autoapi>=3.1", "sphinx-copybutton", "sphinx-rtd-theme"]
dev = ["sainsc[docs]", "pre-commit"]
docs = [
"sphinx",
"sphinx-autoapi>=3.1",
"sphinx-copybutton",
"sphinx-rtd-theme",
"myst-nb",
]
dev = ["sainsc[docs,spatialdata]", "pre-commit"]

[project.urls]
homepage = "https://github.com/HiDiHlabs/sainsc"
Expand Down

0 comments on commit 7a2b4ae

Please sign in to comment.