Skip to content

Commit

Permalink
Added hierarchy to user and developer api (#779)
Browse files Browse the repository at this point in the history
* Added further collapsable sections

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Removed classes from docs as in #778

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* lint fix attempt

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* fixing linting 2

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
LeonStadelmann and pre-commit-ci[bot] authored Jan 19, 2025
1 parent 41c57a1 commit 2acb484
Show file tree
Hide file tree
Showing 28 changed files with 207 additions and 215 deletions.
1 change: 1 addition & 0 deletions docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@ help:
clean:
@rm -rf $(BUILDDIR)/*
@rm -rf $(SOURCEDIR)/genapi/
@rm -rf $(SOURCEDIR)/**/genapi/
110 changes: 0 additions & 110 deletions docs/developer.rst

This file was deleted.

13 changes: 13 additions & 0 deletions docs/developer/backends.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Backends
~~~~~~~~
.. module:: moscot.backends
.. currentmodule:: moscot
.. autosummary::
:toctree: genapi

backends.ott.SinkhornSolver
backends.ott.GWSolver
backends.ott.OTTOutput
backends.ott.GraphOTTOutput
backends.utils.get_solver
backends.utils.get_available_backends
35 changes: 35 additions & 0 deletions docs/developer/base.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
Base
~~~~
.. module:: moscot.base
.. currentmodule:: moscot.base
.. autosummary::
:toctree: genapi

problems.BaseProblem
problems.OTProblem
problems.BirthDeathProblem
problems.BaseCompoundProblem
problems.CompoundProblem
cost.BaseCost
problems.AnalysisMixin
problems.BirthDeathMixin
problems.birth_death.beta
problems.birth_death.delta

.. module:: moscot.solvers
.. currentmodule:: moscot.base
.. autosummary::
:toctree: genapi

solver.BaseSolver
solver.OTSolver

.. autosummary::
:toctree: genapi

output.BaseDiscreteSolverOutput
output.MatrixSolverOutput
solver.BaseSolver
solver.OTSolver
output.BaseDiscreteSolverOutput
output.MatrixSolverOutput
12 changes: 12 additions & 0 deletions docs/developer/costs.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Costs
~~~~~
.. module:: moscot.costs
.. currentmodule:: moscot
.. autosummary::
:toctree: genapi

costs.BarcodeDistance
costs.LeafDistance
costs.get_cost
costs.get_available_costs
costs.register_cost
12 changes: 12 additions & 0 deletions docs/developer/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Developer API
#############

.. module:: moscot.dev

.. toctree::
:maxdepth: 2

backends
costs
base
utils
21 changes: 21 additions & 0 deletions docs/developer/utils.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
Utils
~~~~~
.. module:: moscot.utils
.. currentmodule:: moscot.utils
.. autosummary::
:toctree: genapi

subset_policy.SubsetPolicy
subset_policy.OrderedPolicy
subset_policy.StarPolicy
subset_policy.ExternalStarPolicy
subset_policy.SequentialPolicy
subset_policy.TriangularPolicy
subset_policy.ExplicitPolicy
data.transcription_factors
data.proliferation_markers
data.apoptosis_markers
tagged_array.TaggedArray
tagged_array.Tag
tagged_array.DistributionCollection
tagged_array.DistributionContainer
6 changes: 3 additions & 3 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Important resources
Learn how to install :mod:`moscot`.

.. grid-item-card:: User API
:link: user
:link: user/index
:link-type: doc

Find a detailed documentation of :mod:`moscot`.
Expand Down Expand Up @@ -85,8 +85,8 @@ Important resources

installation
user_guide
user
developer
user/index
developer/index
contributing
notebooks/tutorials/index
notebooks/examples/index
Expand Down
60 changes: 0 additions & 60 deletions docs/user.rst

This file was deleted.

18 changes: 18 additions & 0 deletions docs/user/datasets.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
Datasets
~~~~~~~~
.. module:: moscot.datasets
.. currentmodule:: moscot
.. autosummary::
:toctree: genapi

datasets.bone_marrow
datasets.c_elegans
datasets.drosophila
datasets.hspc
datasets.mosta
datasets.pancreas_multiome
datasets.sciplex
datasets.sim_align
datasets.simulate_data
datasets.tedsim
datasets.zebrafish
15 changes: 15 additions & 0 deletions docs/user/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
User API
########

.. module:: moscot.user

Import :mod:`moscot` as::

import moscot as mt

.. toctree::
:maxdepth: 2

problems
plotting
datasets
11 changes: 11 additions & 0 deletions docs/user/plotting.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Plotting
~~~~~~~~
.. module:: moscot.plotting
.. currentmodule:: moscot
.. autosummary::
:toctree: genapi

plotting.cell_transition
plotting.sankey
plotting.push
plotting.pull
24 changes: 24 additions & 0 deletions docs/user/problems.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
Biological Problems
~~~~~~~~~~~~~~~~~~~
.. module:: moscot.problems
.. currentmodule:: moscot.problems
.. autosummary::
:toctree: genapi

time.TemporalProblem
time.LineageProblem
space.AlignmentProblem
space.MappingProblem
spatiotemporal.SpatioTemporalProblem
cross_modality.TranslationProblem

Generic Problems
~~~~~~~~~~~~~~~~
.. module:: moscot.generic
.. currentmodule:: moscot.problems
.. autosummary::
:toctree: genapi

generic.SinkhornProblem
generic.GWProblem
generic.FGWProblem
2 changes: 1 addition & 1 deletion src/moscot/base/problems/birth_death.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def estimate_marginals(
Examples
--------
- See :doc:`../notebooks/examples/problems/800_score_genes_for_marginals`
- See :doc:`../../notebooks/examples/problems/800_score_genes_for_marginals`
on examples how to use :meth:`~moscot.problems.time.TemporalProblem.score_genes_for_marginals`.
""" # noqa: D205
Expand Down
Loading

0 comments on commit 2acb484

Please sign in to comment.