Skip to content

Commit

Permalink
documentation WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
quentinblampey committed Nov 9, 2023
1 parent 5fc21af commit e24f7dc
Show file tree
Hide file tree
Showing 11 changed files with 182 additions and 68 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: ci
name: ci
on:
push:
tags:
tags:
- v*
jobs:
deploy:
Expand Down Expand Up @@ -36,7 +36,7 @@ jobs:
#----------------------------------------------
- name: Install dependencies
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: poetry install
run: poetry install --extras "dev"
#----------------------------------------------
# run test suite
#----------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<img src="docs/assets/sopa.png" alt="sopa_logo" width="400"/>
</p>

**S**patial-**o**mics **p**reprocessing and **a**nalysis in Python. Built on top of [SpatialData](https://github.com/scverse/spatialdata), it enables processing and analyses of **any** imaging-based spatial-omics using a standard data structure and output. Sopa was designed for generability and low-memory consumption on large images (scales to `1TB+` images).
**S**patial-**o**mics **p**ipeline and **a**nalysis in Python. Built on top of [SpatialData](https://github.com/scverse/spatialdata), it enables processing and analyses of **any** imaging-based spatial-omics using a standard data structure and output. Sopa was designed for generability and low-memory consumption on large images (scales to `1TB+` images).

The pipeline outputs are composed of (i) Xenium Explorer files for interactive visualization, (ii) a HTML report for quick quality controls, and (iii) a SpatialData `.zarr` directory for further analyses.

Expand Down
1 change: 1 addition & 0 deletions docs/api/segmentation/shapes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
::: sopa.segmentation.shapes.solve_conflicts
9 changes: 9 additions & 0 deletions docs/cite_us.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Our paper is available as an Arxiv preprint [here](TODO).
```txt
TODO
```

This library has been developed by Quentin Blampey, PhD student in Biomathematics / Deep Learning. The following institutions funded this work:

- Lab of Mathematics and Computer Science (MICS), **CentraleSupélec** (Engineering School, Paris-Saclay University).
- PRISM center, **Gustave Roussy Institute** (Cancer campus, Paris-Saclay University).
26 changes: 13 additions & 13 deletions docs/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@
```console
// Run the Sopa CLI helper
$ sopa --help
Usage: sopa [OPTIONS] COMMAND [ARGS]...
╭─ Commands ────────────────────────────────────────────────────────────
│ aggregate Count transcripts and/or average channels inside cells │
│ annotate Perform cell-type annotation
│ check Run some sanity checks
│ crop Crop an image based on a user-defined polygon
│ explorer Convertion to the Xenium Explorer's inputs
│ patchify Create patches with overlaps
│ read Read any technology data + write an SpatialData object
│ report Create a HTML report of the pipeline run and some QCs
│ resolve Resolve the segmentation conflicts over patches
│ segmentation Perform cell segmentation on patches
╰───────────────────────────────────────────────────────────────────────
Usage: sopa [OPTIONS] COMMAND [ARGS]...
╭─ Commands ─────────────────────────────────────────────────────╮
│ aggregate Aggregate transcripts/channels inside cells
│ annotate Perform cell-type annotation │
│ check Run some sanity checks │
│ crop Crop an image based on a user-defined polygon │
│ explorer Convertion to the Xenium Explorer's inputs │
│ patchify Create patches with overlaps │
│ read Read any technology + write a SpatialData object │
│ report Create a web-report with figures/QCs
│ resolve Resolve the segmentation conflicts over patches │
│ segmentation Perform cell segmentation on patches │
╰────────────────────────────────────────────────────────────────╯
// Example: run cellpose segmentation
$ sopa segmentation cellpose sdata.zarr
... [Logs] ...
Expand Down
Empty file added docs/getting_started.md
Empty file.
11 changes: 8 additions & 3 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# Spatial-omics preprocessing and analysis
# Spatial-omics pipeline and analysis

!!! info
Read [Mkdocs Material documentation](https://squidfunk.github.io/mkdocs-material/creating-your-site/) to learn how to update the documentation.
<p align="center">
<img src="./assets/sopa.png" alt="sopa_logo" width="400px"/>
</p>

**S**patial-**o**mics **p**ipeline and **a**nalysis in Python. Built on top of [SpatialData](https://github.com/scverse/spatialdata), it enables processing and analyses of **any** imaging-based spatial-omics using a standard data structure and output. Sopa was designed for generability and low-memory consumption on large images (scales to `1TB+` images).

The pipeline outputs are composed of (i) Xenium Explorer files for interactive visualization, (ii) a HTML report for quick quality controls, and (iii) a SpatialData `.zarr` directory for further analyses.
6 changes: 6 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,15 @@ theme:
favicon: assets/sopa_favicon.png
nav:
- Home: index.md
- Getting Started: getting_started.md
- CLI: cli.md
- API:
- sopa.segmentation:
- sopa.segmentation.shapes: api/segmentation/shapes.md
- Cite us: cite_us.md
plugins:
- search
- mkdocstrings
markdown_extensions:
- admonition
- attr_list
Expand Down
Loading

0 comments on commit e24f7dc

Please sign in to comment.