Skip to content

Commit 89d6b13

Browse files
finished rtfd documentation and resturctured examples.
1 parent d5fb091 commit 89d6b13

24 files changed

+101
-2225
lines changed

docs/_static/css/custom.css

-25
This file was deleted.

docs/examples.rst

-53
This file was deleted.

docs/index.rst

+3-4
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,10 @@ Welcome to diffxpy's documentation!
1010
:maxdepth: 2
1111
:caption: Contents:
1212

13+
installation
14+
tutorials
1315
api/index
14-
examples
15-
.. basic_usage
16-
.. installation
17-
.. references
16+
references
1817

1918

2019
Indices and tables

docs/installation.rst

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
Installation
2+
============
3+
4+
We assume that you have a python environment set up.
5+
6+
Firstly, you need to install batchglm which depdends on the PyPi packages and tensorflow and tensorflow-probability.
7+
You can install these dependencies from source to optimze them to your hardware which can improve performance.
8+
Note that both packages also have GPU versions which allows you to run the run-time limiting steps of diffxpy on GPUs.
9+
The simplest installation of these dependencies is via pip: call::
10+
11+
pip install tf-nightly
12+
pip install tfp-nightly
13+
14+
The nightly versions of tensorflow and tensorflow-probability are up-to-date versions of these packages.
15+
Alternatively you can also install the major releases: call::
16+
17+
pip install tensorflow
18+
pip install tensorflow-probability
19+
20+
21+
You can then install batchglm from source by using the repository on `GitHub
22+
<https://github.com/theislab/batchglm>`__:
23+
24+
- Chose a directory where you want batchglm to be located and ``cd`` into it.
25+
- Clone the batchglm repository into this directory.
26+
- ``cd`` into the root directory of batchglm.
27+
- Install batchglm from source: call::
28+
29+
pip install -e .
30+
31+
Finally, you can then install diffxpy from source by using the repository on `GitHub
32+
<https://github.com/theislab/diffxpy>`__:
33+
34+
- Chose a directory where you want batchglm to be located and ``cd`` into it.
35+
- Clone the diffxpy repository into this directory.
36+
- ``cd`` into the root directory of diffxpy.
37+
- Install diffxpy from source: call::
38+
39+
pip install -e .
40+
41+
You can now use diffxpy in a python session by via the following import: call::
42+
43+
import diffxpy.api as de

docs/references.rst

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
References
2+
==========

docs/tutorials.rst

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
Tutorials
2+
=========
3+
4+
5+
------------
6+
7+
Differential testing
8+
--------------------
9+
10+
Single tests per gene
11+
~~~~~~~~~~~~~~~~~~~~~
12+
13+
How to perform likelihood-ratio tests `lrt <https://github.com/theislab/diffxpy/tutorials/test/single/likelihood_ratio_test.ipynb>`__.
14+
15+
How to perform Wald tests `wald <https://github.com/theislab/diffxpy/tutorials/test/single/wald_test.ipynb>`__.
16+
17+
How to perform t-tests `t_test <https://github.com/theislab/diffxpy/tutorials/test/single/t_test.ipynb>`__.
18+
19+
How to perform Wilcoxon tests `wilcoxon <https://github.com/theislab/diffxpy/tutorials/test/single/wilcoxon_test.ipynb>`__.
20+
21+
Map single tests across partitions of data set
22+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
23+
24+
Set up a test and conduct test for each gene in each cluster or each sample etc.
25+
We show an example for doing this for a t-test in `partition <https://github.com/theislab/diffxpy/tutorials/test/single/run_by_partition.ipynb>`__.
26+
27+
Multiple tests per gene
28+
~~~~~~~~~~~~~~~~~~~~~~~
29+
30+
How to perform pairwise tests `pairwise <https://github.com/theislab/diffxpy/tutorials/test/multi/pairwise.ipynb>`__.
31+
32+
How to perform group versus rest tests `versus_rest <https://github.com/theislab/diffxpy/tutorials/test/multiversus_rest.ipynb>`__.
33+
34+
35+
Gene set enrichment: enrich
36+
---------------------------
37+
38+
How to conduct a gene set enrichment workflow `enrich <https://github.com/theislab/diffxpy/tutorials/enrich/enrich.ipynb>`__.
39+
40+
41+
Integration with other packages
42+
-------------------------------
43+
44+
How to integrate with `scanpy <https://github.com/theislab/diffxpy/tutorials/integration/scanpy_integration.ipynb>`__.
45+
46+
47+
Example work-flows on real data sets
48+
------------------------------------
49+
50+
HCA immune cell `atlas <https://github.com/theislab/diffxpy/tutorials/real_data/ImmuneCellAtlas.ipynb>`__.
51+
52+
Mouse brain `atlas <https://github.com/theislab/diffxpy/tutorials/real_data/MouseBrainCellAtlas.ipynb>`__.
53+

0 commit comments

Comments
 (0)