Skip to content

Commit 54730fc

Browse files
committed
docs: initial mkdocs conversion
1 parent 51a9f8a commit 54730fc

22 files changed

+904
-1017
lines changed

.readthedocs.yml

+23-17
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,27 @@ build:
44
os: ubuntu-22.04
55
tools:
66
python: "3.11"
7-
jobs:
8-
post_checkout:
9-
# Full history is required for dunamai to calculate the version
10-
- git fetch --unshallow || true
11-
post_create_environment:
12-
# Install poetry
13-
# https://python-poetry.org/docs/#installing-manually
14-
- pip install poetry
15-
# Tell poetry to not use a virtual environment
16-
- poetry config virtualenvs.create false
17-
post_install:
18-
# Install dependencies with 'docs' dependency group
19-
# https://python-poetry.org/docs/managing-dependencies/#dependency-groups
20-
- poetry install --with dev,docs --all-extras
7+
commands:
8+
# Full history is required for dunamai to calculate the version
9+
- git fetch --unshallow || true
10+
# Install poetry
11+
# https://python-poetry.org/docs/#installing-manually
12+
- pip install poetry
13+
# Install poetry-dynamic-versioning plugin
14+
- poetry self add "poetry-dynamic-versioning[plugin]"
15+
# Build the project
16+
- poetry build --format sdist
17+
# Extract the built sdist
18+
- mkdir -p dist/sdist && tar -xzf dist/*.tar.gz -C dist/sdist/
19+
# Replace the files from the repo with the built sdist
20+
- mv dist/sdist/*/pyproject.toml .
21+
# Tell poetry to not use a virtual environment
22+
- poetry config virtualenvs.create false
23+
# Install dependencies with 'docs' dependency group
24+
# https://python-poetry.org/docs/managing-dependencies/#dependency-groups
25+
- poetry install --with dev,docs --all-extras
26+
# Build the docs
27+
- poetry run mkdocs build --clean --site-dir $READTHEDOCS_OUTPUT/html --config-file mkdocs.yml
2128

22-
sphinx:
23-
builder: html
24-
configuration: docs/conf.py
29+
mkdocs:
30+
configuration: mkdocs.yml

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ test: ## Test the code with pytest
1818

1919
.PHONY: docs
2020
docs: ## Build the documentation
21-
@echo "📚 Building documentation"
22-
@poetry run sphinx-build docs build
21+
@echo "📚 Serving documentation"
22+
@mkdocs serve
2323

2424
.PHONY: build
2525
build: clean-build ## Build wheel file using poetry

README.md

+13-13
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
<img height="200" src="https://raw.githubusercontent.com/cytomining/pycytominer/main/logo/with-text-for-light-bg.png?raw=true">
22

3+
- [Data processing for image-based profiling](#data-processing-for-image-based-profiling)
4+
- [Installation](##installation)
5+
- [Frameworks](#frameworks)
6+
- [API](#api)
7+
- [Usage](#usage)
8+
- [Pipeline orchestration](#pipeline-orchestration)
9+
- [Other functionality](#other-functionality)
10+
- [CellProfiler CSV collation](#cellprofiler-csv-collation)
11+
- [Creating a cell locations lookup table](#creating-a-cell-locations-lookup-table)
12+
- [Generating a GCT file for morpheus](#generating-a-gct-file-for-morpheus)
13+
- [Citing pycytominer](#citing-pycytominer)
14+
315
# Data processing for image-based profiling
416

517
[![Build Status](https://github.com/cytomining/pycytominer/actions/workflows/integration-test.yml/badge.svg?branch=main)](https://github.com/cytomining/pycytominer/actions/workflows/integration-test.yml?query=branch%3Amain)
@@ -111,19 +123,7 @@ And, more specifically than that, image-based profiling readouts from [CellProfi
111123

112124
Therefore, we have included some custom tools in `pycytominer/cyto_utils` that provides other functionality:
113125

114-
- [Data processing for image-based profiling](#data-processing-for-image-based-profiling)
115-
- [Installation](#installation)
116-
- [Frameworks](#frameworks)
117-
- [API](#api)
118-
- [Usage](#usage)
119-
- [Pipeline orchestration](#pipeline-orchestration)
120-
- [Other functionality](#other-functionality)
121-
- [CellProfiler CSV collation](#cellprofiler-csv-collation)
122-
- [Creating a cell locations lookup table](#creating-a-cell-locations-lookup-table)
123-
- [Generating a GCT file for morpheus](#generating-a-gct-file-for-morpheus)
124-
- [Citing pycytominer](#citing-pycytominer)
125-
126-
Note, [`pycytominer.cyto_utils.cells.SingleCells()`](pycytominer/cyto_utils/cells.py) contains code to interact with single-cell SQLite files, which are output from CellProfiler.
126+
Note, [`pycytominer.cyto_utils.cells.SingleCells()`](./pycytominer/cyto_utils/cells.py) contains code to interact with single-cell SQLite files, which are output from CellProfiler.
127127
Processing capabilities for SQLite files depends on SQLite file size and your available computational resources (for ex. memory and cores).
128128

129129
### CellProfiler CSV collation

docs/cyto_utils.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Cyto utilities
2+
3+
Functions enabling smooth interaction with CellProfiler and DeepProfiler output formats.
4+
5+
::: pycytominer.cyto_utils

docs/functions.md

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Main Functions
2+
3+
<!-- prettier-ignore-start -->
4+
<!-- mkdocs block -->
5+
6+
::: pycytominer
7+
options:
8+
members:
9+
- aggregate
10+
- annotate
11+
- consensus
12+
- feature_select
13+
- normalize
14+
15+
<!-- mkdocs block END -->
16+
<!-- prettier-ignore-end -->

docs/index.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{%
2+
include-markdown "../README.md"
3+
%}

docs/index.rst

-22
This file was deleted.

docs/install.rst docs/install.md

+5-6
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
1-
Install
2-
=======
1+
# Installation
32

43
To install pycytominer, use pip:
54

6-
.. code-block:: bash
7-
5+
```bash
86
pip install pycytominer
7+
```
98

109
You can also install pycytominer with conda:
1110

12-
.. code-block:: bash
13-
11+
```bash
1412
conda install -c conda-forge pycytominer
13+
```

docs/modules.rst

-7
This file was deleted.

docs/operations.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Operations
2+
3+
We do not recommend interacting with these functions directly.
4+
The core pycytominer API uses these operations internally.
5+
6+
::: pycytominer.operations

docs/pycytominer.cyto_utils.rst

-76
This file was deleted.

docs/pycytominer.operations.rst

-45
This file was deleted.

docs/pycytominer.rst

-59
This file was deleted.

docs/tutorial.md

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Tutorials
2+
3+
`This <https://github.com/cytomining/pipeline-examples#readme>`\_ tutorial shows how to run a image-based profiling pipeline using pycytominer. Using IPython notebooks, it walks through the following steps:
4+
5+
#. Downloading a dataset of single cell `CellProfiler <https://cellprofiler.org/>`_ profiles.
6+
#. Processing the profiles using PyCytominer. This includes the following steps:
7+
#. Data initialization
8+
#. Single cell aggregation to create well-level profiles
9+
#. Addition of experiment metadata to the well-level profiles
10+
#. Profile normalization
11+
#. Feature selection
12+
#. Forming consensus signatures
13+
#. Evaluating the profile quality using `cytominer-eval <https://github.com/cytomining/cytominer-eval>`_.

docs/tutorial.rst

-14
This file was deleted.

docs/walkthrough.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Walkthroughs
2+
3+
.. toctree::
4+
:maxdepth: 1
5+
6+
walkthroughs/single_cell_usage.ipynb

0 commit comments

Comments
 (0)