Skip to content

Commit

Permalink
Add usage and design documentation (#278)
Browse files Browse the repository at this point in the history
* Add usage and design documentation #87

* Update docs/index.rst

Co-authored-by: Alistair Miles <[email protected]>

* Suggested changes

Co-authored-by: Alistair Miles <[email protected]>

* Force push gh-pages branch in gh action

* Suggested changes

* Fix typo

Co-authored-by: Alistair Miles <[email protected]>
  • Loading branch information
eric-czech and alimanfoo authored Sep 30, 2020
1 parent cc7aa7f commit d588980
Show file tree
Hide file tree
Showing 14 changed files with 532 additions and 45 deletions.
1 change: 1 addition & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,5 @@ jobs:
with:
branch: gh-pages
directory: gh-pages
force: true
github_token: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions docs/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
savefig/
Binary file added docs/_static/data-structures-xarray.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions docs/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ Creating a dataset
create_genotype_call_dataset
create_genotype_dosage_dataset

.. _api_methods:

Methods
=======

Expand Down
2 changes: 2 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@
"sphinx.ext.githubpages",
"sphinx.ext.intersphinx",
"scanpydoc",
"IPython.sphinxext.ipython_console_highlighting",
"IPython.sphinxext.ipython_directive",
*[p.stem for p in (HERE / "extensions").glob("*.py")],
]

Expand Down
40 changes: 40 additions & 0 deletions docs/contributing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -271,3 +271,43 @@ We use `mergify <https://mergify.io/>`_ to automate PR flow. A project
to automatically merge a PR by labeling it with ``auto-merge``, and when the PR gets:
at least one +1 (from [committers](https://github.com/orgs/pystatgen/teams/committers))
and a clean build it will get merged automatically.

Design discussions
------------------

The information on these topics may be useful for developers in understanding the
history behind the design choices that have been made within the project so far.

Dataset sublcassing
~~~~~~~~~~~~~~~~~~~

Debates on whether or not we should use Xarray objects directly or
put them behind a layer of encapsulation:

- https://github.com/pystatgen/sgkit/pull/16#issuecomment-657725092
- https://github.com/pystatgen/sgkit/pull/78#issuecomment-669878845

Dataset API typing
~~~~~~~~~~~~~~~~~~

Discussions around bringing stricter array type enforcement into the API:

- https://github.com/pystatgen/sgkit/issues/43
- https://github.com/pystatgen/sgkit/pull/124
- https://github.com/pystatgen/sgkit/pull/276


Delayed invariant checks
~~~~~~~~~~~~~~~~~~~~~~~~

Discussions on how to run sanity checks on arrays efficiently and why those checks would be
useful if they were possible (they are not possible currently w/ Dask):

- https://github.com/pystatgen/sgkit/issues/61
- https://github.com/dask/dask/issues/97

Mixed ploidy
~~~~~~~~~~~~

Proposal for handling mixed ploidy: https://github.com/pystatgen/sgkit/issues/243

Loading

0 comments on commit d588980

Please sign in to comment.