Skip to content

Commit 0fe9bf3

Browse files
authored
Merge pull request #17 from ACCLAB/v0.1.4
v0.1.4
2 parents 82490f5 + ce5d81b commit 0fe9bf3

71 files changed

Lines changed: 2601 additions & 688 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ nosetests.xml
4545
coverage.xml
4646
*.cover
4747
.hypothesis/
48+
.pytest_cache/*
4849

4950
# Translations
5051
*.mo
@@ -109,8 +110,12 @@ venv.bak/
109110
dev*
110111

111112
# DS_Store
112-
.DS_Store
113+
*.DS_Store
113114
**/.DS_Store
114115

115116
# font list
116117
fontList.json
118+
fontList.py3k.cache
119+
120+
# tex folders
121+
tex.cache/

.travis.yml

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,25 @@
11
language: python
22

3+
# matrix:
4+
# include:
5+
# - python: 2.7
6+
# dist: trusty
7+
# sudo: false
8+
# - python: 3.5
9+
# dist: trusty
10+
# sudo: false
11+
# - python: 3.6
12+
# dist: trusty
13+
# sudo: false
14+
# - python: 3.7
15+
# dist: xenial
16+
# sudo: true
17+
318
env:
4-
- PYTHON=3.6
5-
- PYTHON=3.5
6-
- PYTHON=2.7
19+
- PYTHON=2.7 BACKEND=agg
20+
- PYTHON=3.5 BACKEND=agg
21+
- PYTHON=3.6 BACKEND=agg
22+
- PYTHON=3.7 BACKEND=agg
723

824
before_install:
925
- wget https://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
@@ -18,7 +34,7 @@ install:
1834
- conda update conda --yes
1935
- conda create -n testenv --yes pip python=$PYTHON matplotlib
2036
- source activate testenv
21-
- pip install pytest==3.3
37+
- pip install pytest==3.6
2238
- pip install .
2339

24-
script: pytest -s
40+
script: pytest

README.md

Lines changed: 47 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,33 @@
11
# DABEST (Python)
2-
[![Travis CI](https://travis-ci.org/ACCLAB/DABEST-python.svg?branch=master)](https://travis-ci.org/ACCLAB/DABEST-python)
3-
[![PyPI](https://img.shields.io/pypi/v/dabest.svg)](https://pypi.python.org/pypi/dabest/0.1.3)
2+
[![Travis CI](https://travis-ci.org/ACCLAB/DABEST-python.svg)](https://travis-ci.org/ACCLAB/DABEST-python)
3+
[![PyPI](https://badge.fury.io/py/dabest.svg)](https://pypi.python.org/pypi/dabest)
44

55
## About
66

7-
DABEST is a package for **D**ata **A**nalysis using **B**ootstrapped **EST**imation.
7+
DABEST is a package for **D**ata **A**nalysis using **B**ootstrap-Coupled **EST**imation.
88

9-
![Gardner-Altman plot](https://acclab.github.io/DABEST-python-docs/_images/f1.png)
9+
[Estimation statistics](https://en.wikipedia.org/wiki/Estimation_statistics) is a [simple framework](https://thenewstatistics.com/itns/) that avoids the [pitfalls](https://www.nature.com/articles/nmeth.3288) of significance testing. It uses familiar statistical concepts: means, mean differences, and error bars. More importantly, it focuses on the effect size of one's experiment/intervention, as opposed to a false dichotomy engendered by *P* values.
10+
11+
An estimation plot has two key features.
12+
13+
1. It presents all datapoints as a swarmplot, which orders each point to display the underlying distribution.
14+
15+
2. It presents the effect size as a **bootstrap 95% confidence interval** on a **separate but aligned axes**.
16+
17+
![The five kinds of estimation plots](docs/source/_images/showpiece.png?raw=true "The five kinds of estimation plots.")
18+
19+
DABEST powers [estimationstats.com](https://www.estimationstats.com/), allowing everyone access to high-quality estimation plots.
1020

1121
## Requirements
1222

13-
Python 3.6 is strongly recommended, although this has been tested with Python 2.7 and Python 3.5.
23+
DABEST has been tested on Python 2.7, 3.5, 3.6, and 3.7.
1424

1525
In addition, the following packages are also required:
16-
- [numpy](https://www.numpy.org/) (1.13.x)
17-
- [scipy](https://www.scipy.org/) (1.0.x)
18-
- [matplotlib](https://www.matplotlib.org/) (2.0.x)
19-
- [seaborn](https://seaborn.pydata.org/) (0.8.x)
20-
- [pandas](https://pandas.pydata.org/) (0.23.x).
26+
- [numpy](https://www.numpy.org) (1.15)
27+
- [scipy](https://www.scipy.org) (1.1)
28+
- [matplotlib](https://www.matplotlib.org) (2.2)
29+
- [seaborn](https://seaborn.pydata.org) (0.9)
30+
- [pandas](https://pandas.pydata.org) (0.23).
2131

2232
To obtain these package dependencies easily, it is highly recommended to download the [Anaconda distribution](https://www.continuum.io/downloads) of Python.
2333

@@ -34,18 +44,25 @@ or -->
3444
```shell
3545
pip install --upgrade dabest
3646
```
37-
You can also clone this repo locally (see intstructions [here](https://help.github.com/articles/cloning-a-repository/)).
47+
You can also clone this repo locally (see intstructions [here](https://help.github.com/articles/cloning-a-repository)).
3848

3949
Then, navigate to the cloned repo in the command line and run
4050

4151
```shell
4252
pip install .
4353
```
4454

45-
4655
## Usage
4756

48-
Please refer to the [documentation](https://acclab.github.io/DABEST-python-docs/index.html).
57+
Please refer to the [documentation](https://acclab.github.io/DABEST-python-docs).
58+
59+
## How to cite
60+
61+
**Moving beyond P values: Everyday data analysis with estimation plots**
62+
63+
*Joses Ho, Tayfun Tumkaya, Sameer Aryal, Hyungwon Choi, Adam Claridge-Chang*
64+
65+
[https://doi.org/10.1101/377978](https://doi.org/10.1101/377978)
4966

5067

5168
## Matlab version
@@ -55,6 +72,21 @@ There is also a [Matlab version](https://github.com/ACCLAB/DABEST-Matlab) of DAB
5572

5673
## R version
5774

58-
There isn't an implementation of DABEST in R, and there are no current plans to create one.
75+
It is possible to use the R package `reticulate` to run Python code. Please take a look at this [tutorial](https://acclab.github.io/DABEST-python-docs/dabest-r.html) on how to use `reticulate` to analyse data in R.
76+
77+
78+
## Testing
79+
80+
To test DABEST, you will need to install [pytest](https://docs.pytest.org/en/latest).
81+
82+
Run `pytest` in the root directory of the source distribution. This runs the test suite in the folder `dabest/tests`. The test suite will ensure that the bootstrapping functions and the plotting functions perform as expected.
83+
84+
85+
## Bugs
86+
87+
Please report any bugs on the [Github issue tracker](https://github.com/ACCLAB/DABEST-python/issues/new).
88+
89+
90+
## Contributing
5991

60-
However, it is possible to use the R package `reticulate` to run Python code. Please take a look at this [tutorial](https://acclab.github.io/DABEST-python-docs/dabest-r.html) on how to use `reticulate` to analyse data in R.
92+
All contributions are welcome. Please fork the [Github repo](https://github.com/ACCLAB/DABEST-python) and open a pull request.

dabest/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
from .api import plot
33
from .bootstrap_tools import bootstrap
44

5-
__version__="0.1.3"
5+
__version__="0.1.4"

0 commit comments

Comments
 (0)