Skip to content

Commit 9b0c918

Browse files
committed
Merge branch 'v2024.03.29' of github.com:ACCLAB/DABEST-python into JAnns98-patch-1
# Conflicts: # nbs/tutorials/07-forest_plot.ipynb
2 parents 1fdbd49 + c080f82 commit 9b0c918

28 files changed

Lines changed: 1472 additions & 316 deletions

CHANGELOG.md

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,29 @@
22

33
<!-- do not remove -->
44

5-
## 2023.03.29
5+
## v2024.03.29
66

77
### New Features
8-
- Add new form of paired proportion plots for a better support of Repeated Measures
98

9+
- **Standardized Delta-delta Effect Size**: We added a new metric akin to a Hedges’ g for delta-delta effect size, which allows comparisons between delta-delta effects generated from metrics with different units.
1010

11-
## 0.2.3
11+
- **New Paired Proportion Plot**: This feature builds upon the existing proportional analysis capabilities by introducing advanced aesthetics and clearer visualization of changes in proportions between different groups, inspired by the informative nature of Sankey Diagrams. It's particularly useful for studies that require detailed examination of how proportions shift in paired observations.
1212

13-
### Bug Fixes
14-
- Fixes a bug that jammed up when the xvar column was already a pandas Categorical. Now we check for this and act appropriately.
13+
- **Customizable Swarm Plot**: Enhancements allow for tailored swarm plot aesthetics, notably the adjustment of swarm sides to produce asymmetric swarm plots. This customization enhances data representation, making visual distinctions more pronounced and interpretations clearer.
14+
15+
### Enhancement
16+
17+
- **Miscellaneous Improvements**: This version also encompasses a broad range of miscellaneous enhancements, including bug fixes, Bootstrapping speed improvements, new templates for raising issues, and updated unit tests. These improvements are designed to streamline the user experience, increase the software's stability, and expand its versatility. By addressing user feedback and identified issues, DABEST continues to refine its functionality and reliability.
18+
19+
20+
21+
## v2023.03.29
22+
23+
### New Features
24+
- **Repeated measures**: Augments the prior function for plotting (independent) multiple test groups versus a shared control; it can now do the same for repeated-measures experimental designs. Thus, together, these two methods can be used to replace both flavors of the 1-way ANOVA with an estimation analysis.
25+
26+
- **Proportional data**: Generates proportional bar plots, proportional differences, and calculates Cohen’s h. Also enables plotting Sankey diagrams for paired binary data. This is the estimation equivalent to a bar chart with Fischer’s exact test.
27+
28+
- **The ∆∆ plot**: Calculates the delta-delta (∆∆) for 2 × 2 experimental designs and plots the four groups with their relevant effect sizes. This design can be used as a replacement for the 2 × 2 ANOVA.
29+
30+
- **Mini-meta**: Calculates and plots a weighted delta (∆) for meta-analysis of experimental replicates. Useful for summarizing data from multiple replicated experiments, for example by different scientists in the same lab, or the same scientist at different times. When the observed values are known (and share a common metric), this makes meta-analysis available as a routinely accessible tool.

README.md

Lines changed: 46 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -2,34 +2,48 @@
22

33
<!-- WARNING: THIS FILE WAS AUTOGENERATED! DO NOT EDIT! -->
44

5+
[![minimal Python
6+
version](https://img.shields.io/badge/Python%3E%3D-3.8-6666ff.svg)](https://www.anaconda.com/distribution/)
7+
[![PyPI
8+
version](https://badge.fury.io/py/dabest.svg)](https://badge.fury.io/py/dabest)
9+
[![Downloads](https://img.shields.io/pepy/dt/dabest.svg)](https://pepy.tech/project/dabest)
10+
[![Free-to-view
11+
citation](https://zenodo.org/badge/DOI/10.1038/s41592-019-0470-3.svg)](https://rdcu.be/bHhJ4)
12+
[![License](https://img.shields.io/badge/License-BSD%203--Clause--Clear-orange.svg)](https://spdx.org/licenses/BSD-3-Clause-Clear.html)
13+
514
## Recent Version Update
615

7-
On 20 March 2023, we officially released **DABEST v2023.02.14 for
8-
Python**. This new version provided the following new features:
9-
10-
1. **Repeated measures.** Augments the prior function for plotting
11-
(independent) multiple test groups versus a shared control; it can
12-
now do the same for repeated-measures experimental designs. Thus,
13-
together, these two methods can be used to replace both flavors of
14-
the 1-way ANOVA with an estimation analysis.
15-
16-
2. **Proportional data.** Generates proportional bar plots,
17-
proportional differences, and calculates Cohen’s h. Also enables
18-
plotting Sankey diagrams for paired binary data. This is the
19-
estimation equivalent to a bar chart with Fisher’s exact test.
20-
21-
3. **The $\Delta\Delta$ plot.** Calculates the delta-delta
22-
($\Delta\Delta$) for 2 × 2 experimental designs and plots the four
23-
groups with their relevant effect sizes. This design can be used as
24-
a replacement for the 2 × 2 ANOVA.
25-
26-
4. **Mini-meta.** Calculates and plots a weighted delta ($\Delta$) for
27-
meta-analysis of experimental replicates. Useful for summarizing
28-
data from multiple replicated experiments, for example by different
29-
scientists in the same lab, or the same scientist at different
30-
times. When the observed values are known (and share a common
31-
metric), this makes meta-analysis available as a routinely
32-
accessible tool.
16+
We are proud to announce **DABEST Version Ondeh (v2024.03.29)**. This
17+
new version of the DABEST Python library provides several new features
18+
and includes performance improvements.
19+
20+
1. **New Paired Proportion Plot**: This feature builds upon the
21+
existing proportional analysis capabilities by introducing advanced
22+
aesthetics and clearer visualization of changes in proportions
23+
between different groups, inspired by the informative nature of
24+
Sankey Diagrams. It’s particularly useful for studies that require
25+
detailed examination of how proportions shift in paired
26+
observations.
27+
28+
2. **Customizable Swarm Plot**: Enhancements allow for tailored swarm
29+
plot aesthetics, notably the adjustment of swarm sides to produce
30+
asymmetric swarm plots. This customization enhances data
31+
representation, making visual distinctions more pronounced and
32+
interpretations clearer.
33+
34+
3. **Standardized Delta-delta Effect Size**: We added a new metric akin
35+
to a Hedges’ g for delta-delta effect size, which allows comparisons
36+
between delta-delta effects generated from metrics with different
37+
units.
38+
39+
4. **Miscellaneous Improvements**: This version also encompasses a
40+
broad range of miscellaneous enhancements, including bug fixes,
41+
Bootstrapping speed improvements, new templates for raising issues,
42+
and updated unit tests. These improvements are designed to
43+
streamline the user experience, increase the software’s stability,
44+
and expand its versatility. By addressing user feedback and
45+
identified issues, DABEST continues to refine its functionality and
46+
reliability.
3347

3448
## Contents
3549

@@ -77,7 +91,7 @@ allowing everyone access to high-quality estimation plots.
7791

7892
## Installation
7993

80-
This package is tested on Python 3.6, 3.7, 3.8 and 3.10. It is highly
94+
This package is tested on Python 3.8 and onwards. It is highly
8195
recommended to download the [Anaconda
8296
distribution](https://www.continuum.io/downloads) of Python in order to
8397
obtain the dependencies easily.
@@ -86,13 +100,6 @@ You can install this package via `pip`.
86100

87101
To install, at the command line run
88102

89-
``` shell
90-
conda config --add channels conda-forge
91-
conda install dabest
92-
```
93-
94-
or –\>
95-
96103
``` shell
97104
pip install dabest
98105
```
@@ -128,8 +135,8 @@ iris_dabest.mean_diff.plot();
128135
dataset](iris.png)
129136

130137
Please refer to the official
131-
[tutorial](https://acclab.github.io/DABEST-python-docs/tutorial.html)
132-
for more useful code snippets.
138+
[tutorial](https://acclab.github.io/DABEST-python/) for more useful code
139+
snippets.
133140

134141
## How to cite
135142

@@ -147,8 +154,8 @@ PDF](https://rdcu.be/bHhJ4)
147154

148155
## Bugs
149156

150-
Please report any bugs on the [Github issue
151-
tracker](https://github.com/ACCLAB/DABEST-python/issues/new).
157+
Please report any bugs on the [issue
158+
page](https://github.com/ACCLAB/DABEST-python/issues/new).
152159

153160
## Contributing
154161

@@ -184,7 +191,7 @@ To test DABEST, you need to install
184191
- Run `pytest` in the root directory of the source distribution. This
185192
runs the test suite in the folder `dabest/tests/mpl_image_tests`.
186193
- Run `nbdev_test` in the root directory of the source distribution.
187-
This runs the value assertion tests in parent folder `dabest/tests`
194+
This runs the value assertion tests in the folder `dabest/tests`
188195

189196
The test suite ensures that the bootstrapping functions and the plotting
190197
functions perform as expected.

dabest/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
from ._effsize_objects import TwoGroupsEffectSize, PermutationTest
44
from ._dabest_object import Dabest
55

6-
__version__ = "2023.03.29"
6+
__version__ = "2024.03.29"

nbs/01-getting_started.ipynb

Lines changed: 40 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,43 @@
1212
"- order: 1"
1313
]
1414
},
15+
{
16+
"cell_type": "markdown",
17+
"id": "5b3dcdd6",
18+
"metadata": {},
19+
"source": [
20+
"## Introduction"
21+
]
22+
},
23+
{
24+
"cell_type": "markdown",
25+
"id": "2aebebc2",
26+
"metadata": {},
27+
"source": [
28+
"DABEST is a package for **D**ata **A**nalysis with **B**ootstrapped **EST**imation\n",
29+
"\n",
30+
"[Estimation statistics](https://en.wikipedia.org/wiki/Estimation_statistics) is a simple framework 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."
31+
]
32+
},
33+
{
34+
"cell_type": "markdown",
35+
"id": "0fc075f5",
36+
"metadata": {},
37+
"source": [
38+
"An estimation plot has two key features.\n",
39+
"\n",
40+
"1. It **presents all datapoints** as a swarmplot, which orders each point to display the underlying distribution.\n",
41+
"2. It presents the **effect size** as a **bootstrap 95% confidence interval** on a **separate but aligned axes**."
42+
]
43+
},
44+
{
45+
"cell_type": "markdown",
46+
"id": "e4c2e459",
47+
"metadata": {},
48+
"source": [
49+
"DABEST powers [estimationstats.com](estimationstats.com), allowing everyone access to high-quality estimation plots."
50+
]
51+
},
1552
{
1653
"cell_type": "markdown",
1754
"id": "d1d5cb1a",
@@ -27,14 +64,14 @@
2764
"source": [
2865
"\n",
2966
"\n",
30-
"Python 3.10 is strongly recommended. DABEST has also been tested with Python 3.6, 3.7 and 3.8.\n",
67+
"Python 3.10 is strongly recommended. DABEST has also been tested with Python 3.8 and onwards.\n",
3168
"\n",
3269
"In addition, the following packages are also required (listed with their minimal versions):\n",
3370
"\n",
34-
"* [numpy 1.22.4](https://www.numpy.org)\n",
71+
"* [numpy 1.23.5](https://www.numpy.org)\n",
3572
"* [scipy 1.9.3](https://www.scipy.org)\n",
3673
"* [matplotlib 3.6.3](https://www.matplotlib.org)\n",
37-
"* [pandas 1.5.3](https://pandas.pydata.org)\n",
74+
"* [pandas 1.5.0](https://pandas.pydata.org)\n",
3875
"* [seaborn 0.12.2](https://seaborn.pydata.org)\n",
3976
"* [lqrt 0.3.3](https://github.com/alyakin314/lqrt)\n",
4077
"\n",

nbs/02-about.ipynb

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@
1717
"\n",
1818
"DABEST is written in Python by [Joses W. Ho](https://twitter.com/jacuzzijo), with design and input from [Adam Claridge-Chang](https://twitter.com/adamcchang) and other [lab members](https://www.claridgechang.net/people.html).\n",
1919
"\n",
20-
"Additional features in v2023.02.14 were added by [Yixuan Li](https://github.com/LI-Yixuan), [Zinan Lu](https://github.com/Jacobluke-) and [Rou Zhang](https://github.com/ZHANGROU-99).\n",
20+
"Features in v2024.03.29 were added by [Zinan Lu](https://github.com/Jacobluke-), [Kah Seng Lian](https://github.com/sunroofgod), [Ana Rosa Castillo](https://github.com/cyberosa).\n",
21+
"\n",
22+
"Features in v2023.02.14 were added by [Yixuan Li](https://github.com/LI-Yixuan), [Zinan Lu](https://github.com/Jacobluke-) and [Rou Zhang](https://github.com/ZHANGROU-99).\n",
2123
"\n",
2224
"To find out more about the authors' research, please visit the [Claridge-Chang lab webpage](http://www.claridgechang.net/).\n",
2325
"\n",
@@ -81,14 +83,6 @@
8183
"POSSIBILITY OF SUCH DAMAGE.\n",
8284
"</div>\n"
8385
]
84-
},
85-
{
86-
"cell_type": "code",
87-
"execution_count": null,
88-
"id": "de35a697",
89-
"metadata": {},
90-
"outputs": [],
91-
"source": []
9286
}
9387
],
9488
"metadata": {

0 commit comments

Comments
 (0)