Skip to content

Commit

Permalink
Merge pull request #59 from gwaygenomics/docs-update
Browse files Browse the repository at this point in the history
Autodoc update
  • Loading branch information
gwaybio authored Jun 1, 2021
2 parents b3f8000 + b921262 commit 779cea1
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 70 deletions.
2 changes: 2 additions & 0 deletions cytominer_eval/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
from .evaluate import evaluate
from cytominer_eval import __about__
from cytominer_eval.__about__ import __version__
13 changes: 9 additions & 4 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,23 @@

import os
import sys
from datetime import date

sys.path.insert(0, os.path.abspath(".."))

import cytominer_eval

# -- Project information -----------------------------------------------------

project = "cytominer-eval"
copyright = "2021, Gregory P. Way"
author = "Gregory P. Way"
project = cytominer_eval.__about__.__project__
author = cytominer_eval.__about__.__author__
copyright = "Copyright 2019 - {date} {author}".format(
date=date.today().year, author=author
)

# The full version, including alpha/beta/rc tags
release = "0.1"
version = cytominer_eval.__about__.__version__
release = version


# -- General configuration ---------------------------------------------------
Expand Down
44 changes: 18 additions & 26 deletions docs/cytominer_eval.operations.rst
Original file line number Diff line number Diff line change
@@ -1,55 +1,47 @@
Metric operations
=================
Metrics
=======

Implementations of various profile evaluation metrics.
These can be used directly, but we recommend usage through cytominer_eval.evaluate().
These can be used directly, but we recommend usage through `cytominer_eval.evaluate()``.

cytominer_eval.evaluate() contains several checks to confirm metrics are properly implemented.
`cytominer_eval.evaluate()` contains several checks to confirm metrics are properly implemented.

cytominer\_eval.operations.grit
-------------------------------
Grit
----

.. automodule:: cytominer_eval.operations.grit
:members:
:undoc-members:
:show-inheritance:

cytominer\_eval.operations.mp\_value
------------------------------------
mp-value
--------

.. automodule:: cytominer_eval.operations.mp_value
:members:
:undoc-members:
:show-inheritance:

cytominer\_eval.operations.replicate\_reproducibility
-----------------------------------------------------
Replicate reproducibility
-------------------------

.. automodule:: cytominer_eval.operations.replicate_reproducibility
:members:
:undoc-members:
:show-inheritance:

cytominer\_eval.operations.precision\_recall
--------------------------------------------
Precision and recall
--------------------

.. automodule:: cytominer_eval.operations.precision_recall
:members:
:undoc-members:
:show-inheritance:

cytominer\_eval.operations.util
-------------------------------
Enrichment
----------

.. automodule:: cytominer_eval.operations.util
:members:
:undoc-members:
:show-inheritance:

Module contents
---------------

.. automodule:: cytominer_eval.operations
:members:
:undoc-members:
:show-inheritance:
.. automodule:: cytominer_eval.operations.enrichment
:members:
:undoc-members:
:show-inheritance:
16 changes: 5 additions & 11 deletions docs/cytominer_eval.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
cytominer_eval
==============

The primary way to use cytominer-eval is through `evaluate.py`.
The `operation` argument controls which metric to calculate.

evaluate.py
-----------

Expand All @@ -9,19 +12,10 @@ evaluate.py
:undoc-members:
:show-inheritance:

Other functions
---------------
cytominer_eval.operations
-------------------------

.. toctree::
:maxdepth: 4

cytominer_eval.operations
cytominer_eval.transform

Module contents
---------------

.. automodule:: cytominer_eval
:members:
:undoc-members:
:show-inheritance:
28 changes: 0 additions & 28 deletions docs/cytominer_eval.transform.rst

This file was deleted.

2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Profiles are high dimensional readouts from high-throughput experiments represen
This python package implements common metrics used to evaluate profile quality and strength.

.. toctree::
:maxdepth: 2
:maxdepth: 3
:caption: Contents:

install
Expand Down

0 comments on commit 779cea1

Please sign in to comment.