Skip to content

Commit 75fe1df

Browse files
authored
Merge pull request #158 from ACCLAB/feat-asymmetric-swarmplots
Add new swarmplot function
2 parents 6220c2b + a2f75d9 commit 75fe1df

87 files changed

Lines changed: 2339 additions & 832 deletions

File tree

Some content is hidden

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

README.md

Lines changed: 18 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -53,21 +53,21 @@ DABEST is a package for **D**ata **A**nalysis using
5353
**B**ootstrap-Coupled **EST**imation.
5454

5555
[Estimation
56-
statistics](https://en.wikipedia.org/wiki/Estimation_statistics) is a
56+
statistics](https://en.wikipedia.org/wiki/Estimation_statistics) are a
5757
[simple framework](https://thenewstatistics.com/itns/) that avoids the
5858
[pitfalls](https://www.nature.com/articles/nmeth.3288) of significance
59-
testing. It uses familiar statistical concepts: means, mean differences,
60-
and error bars. More importantly, it focuses on the effect size of one’s
61-
experiment/intervention, as opposed to a false dichotomy engendered by
62-
*P* values.
59+
testing. It employs familiar statistical concepts such as means, mean
60+
differences, and error bars. More importantly, it focuses on the effect
61+
size of one’s experiment or intervention, rather than succumbing to a
62+
false dichotomy engendered by *P* values.
6363

64-
An estimation plot has two key features.
64+
An estimation plot comprises two key features.
6565

66-
1. It presents all datapoints as a swarmplot, which orders each point
67-
to display the underlying distribution.
66+
1. It presents all data points as a swarm plot, ordering each point to
67+
display the underlying distribution.
6868

69-
2. It presents the effect size as a **bootstrap 95% confidence
70-
interval** on a **separate but aligned axes**.
69+
2. It illustrates the effect size as a **bootstrap 95% confidence
70+
interval** on a **separate but aligned axis**.
7171

7272
![The five kinds of estimation
7373
plots](showpiece.png "The five kinds of estimation plots.")
@@ -77,7 +77,7 @@ allowing everyone access to high-quality estimation plots.
7777

7878
## Installation
7979

80-
This package is tested on Python 3.6, 3.7, and 3.8. It is highly
80+
This package is tested on Python 3.6, 3.7, 3.8 and 3.10. It is highly
8181
recommended to download the [Anaconda
8282
distribution](https://www.continuum.io/downloads) of Python in order to
8383
obtain the dependencies easily.
@@ -110,7 +110,7 @@ pip install .
110110
import pandas as pd
111111
import dabest
112112

113-
# Load the iris dataset. Requires internet access.
113+
# Load the iris dataset. This step requires internet access.
114114
iris = pd.read_csv("https://github.com/mwaskom/seaborn-data/raw/master/iris.csv")
115115

116116
# Load the above data into `dabest`.
@@ -159,41 +159,9 @@ to foster an inclusive and productive space.
159159

160160
### A wish list for new features
161161

162-
Currently, DABEST offers functions to handle data traditionally analyzed
163-
with Student’s paired and unpaired t-tests. It also offers plots for
164-
multiplexed versions of these, and the estimation counterpart to a 1-way
165-
analysis of variance (ANOVA), the shared-control design. While these
166-
five functions execute a large fraction of common biomedical data
167-
analyses, there remain three others: 2-way data, time-series group data,
168-
and proportional data. We aim to add these new functions to both the R
169-
and Python libraries.
170-
171-
- In many experiments, four groups are investigate to isolate an
172-
interaction, for example: a genotype × drug effect. Here, wild-type
173-
and mutant animals are each subjected to drug or sham treatments; the
174-
data are traditionally analysed with a 2×2 ANOVA. We have received
175-
requests by email, Twitter, and GitHub to implement an estimation
176-
counterpart to the 2-way ANOVA. To do this, we will implement
177-
$\Delta\Delta$ plots, in which the difference of means ($\Delta$) of
178-
two groups is subtracted from a second two-group $\Delta$.
179-
**Implemented in v2023.02.14.**
180-
181-
- Currently, DABEST can analyse multiple paired data in a single plot,
182-
and multiple groups with a common, shared control. However, a common
183-
design in biomedical science is to follow the same group of subjects
184-
over multiple, successive time points. An estimation plot for this
185-
would combine elements of the two other designs, and could be used in
186-
place of a repeated-measures ANOVA. **Implemented in v2023.02.14**
187-
188-
- We have observed that proportional data are often analyzed in
189-
neuroscience and other areas of biomedical research. However, compared
190-
to other data types, the charts are frequently impoverished: often,
191-
they omit error bars, sample sizes, and even P values—let alone effect
192-
sizes. We would like DABEST to feature proportion charts, with error
193-
bars and a curve for the distribution of the proportional differences.
194-
**Implemented in v2023.02.14**
195-
196-
We encourage contributions for the above features.
162+
If you have any specific comments and ideas for new features that you
163+
would like to share with us, please fill this form. **Add the link to a
164+
google doc form**
197165

198166
## Acknowledgements
199167

@@ -206,12 +174,12 @@ Stanislav Ott.
206174

207175
## Testing
208176

209-
To test DABEST, you will need to install
177+
To test DABEST, you need to install
210178
[pytest](https://docs.pytest.org/en/latest).
211179

212180
Run `pytest` in the root directory of the source distribution. This runs
213-
the test suite in the folder `dabest/tests`. The test suite will ensure
214-
that the bootstrapping functions and the plotting functions perform as
181+
the test suite in the folder `dabest/tests`. The test suite ensures that
182+
the bootstrapping functions and the plotting functions perform as
215183
expected.
216184

217185
## DABEST in other languages

0 commit comments

Comments
 (0)