Skip to content

Commit ff779d2

Browse files
authored
Merge pull request #173 from ACCLAB/patch-splash-page-edit
Documentation Edits
2 parents 1cc16d3 + 781f31d commit ff779d2

28 files changed

Lines changed: 1440 additions & 1104 deletions

CHANGELOG.md

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

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

5+
## 2024.03.29
6+
7+
### New Features
8+
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.
10+
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.
12+
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+
521
## 2023.03.29
622

723
### New Features
8-
- Add new form of paired proportion plots for a better support of Repeated Measures
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.
925

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.
1027

11-
## 0.2.3
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.
1229

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.
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: 33 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -4,32 +4,37 @@
44

55
## Recent Version Update
66

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.
7+
On 22 March 2024, we officially released **DABEST v2024.3.29 for
8+
Python**. This new version provides several new features and includes
9+
performance improvements.
10+
11+
1. **New Paired Proportion Plot**: This feature builds upon the
12+
existing proportional analysis capabilities by introducing advanced
13+
aesthetics and clearer visualization of changes in proportions
14+
between different groups, inspired by the informative nature of
15+
Sankey Diagrams. It’s particularly useful for studies that require
16+
detailed examination of how proportions shift in paired
17+
observations.
18+
19+
2. **Customizable Swarm Plot**: Enhancements allow for tailored swarm
20+
plot aesthetics, notably the adjustment of swarm sides to produce
21+
asymmetric swarm plots. This customization enhances data
22+
representation, making visual distinctions more pronounced and
23+
interpretations clearer.
24+
25+
3. **Standardized Delta-delta Effect Size**: We added a new metric akin
26+
to a Hedges’ g for delta-delta effect size, which allows comparisons
27+
between delta-delta effects generated from metrics with different
28+
units.
29+
30+
4. **Miscellaneous Improvements**: This version also encompasses a
31+
broad range of miscellaneous enhancements, including bug fixes,
32+
Bootstrapping speed improvements, new templates for raising issues,
33+
and updated unit tests. These improvements are designed to
34+
streamline the user experience, increase the software’s stability,
35+
and expand its versatility. By addressing user feedback and
36+
identified issues, DABEST continues to refine its functionality and
37+
reliability.
3338

3439
## Contents
3540

@@ -128,8 +133,8 @@ iris_dabest.mean_diff.plot();
128133
dataset](iris.png)
129134

130135
Please refer to the official
131-
[tutorial](https://acclab.github.io/DABEST-python-docs/tutorial.html)
132-
for more useful code snippets.
136+
[tutorial](https://acclab.github.io/DABEST-python/) for more useful code
137+
snippets.
133138

134139
## How to cite
135140

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: 37 additions & 0 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",

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).\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": {

nbs/API/dabest_object.ipynb

Lines changed: 25 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -805,18 +805,18 @@
805805
{
806806
"data": {
807807
"text/plain": [
808-
"DABEST v2023.03.29\n",
808+
"DABEST v2024.03.29\n",
809809
"==================\n",
810810
" \n",
811811
"Good afternoon!\n",
812-
"The current time is Tue Apr 18 14:47:26 2023.\n",
812+
"The current time is Tue Mar 19 15:33:25 2024.\n",
813813
"\n",
814814
"The unpaired mean difference between control and test is 0.5 [95%CI -0.0412, 1.0].\n",
815815
"The p-value of the two-sided permutation t-test is 0.0758, calculated for legacy purposes only. \n",
816816
"\n",
817817
"5000 bootstrap samples were taken; the confidence interval is bias-corrected and accelerated.\n",
818818
"Any p-value reported is the probability of observing theeffect size (or greater),\n",
819-
"assuming the null hypothesis ofzero difference is true.\n",
819+
"assuming the null hypothesis of zero difference is true.\n",
820820
"For each p-value, 5000 reshuffles of the control and test labels were performed.\n",
821821
"\n",
822822
"To get the results of all valid statistical tests, use `.mean_diff.statistical_tests`"
@@ -865,31 +865,21 @@
865865
"id": "8e9b8635",
866866
"metadata": {},
867867
"outputs": [
868-
{
869-
"name": "stderr",
870-
"output_type": "stream",
871-
"text": [
872-
"/Users/jacobluke/opt/anaconda3/envs/dabest-nbdev/lib/python3.8/site-packages/dabest/_stats_tools/effsize.py:72: UserWarning: Using median as the statistic in bootstrapping may result in a biased estimate and cause problems with BCa confidence intervals. Consider using a different statistic, such as the mean.\n",
873-
"When plotting, please consider using percetile confidence intervals by specifying `ci_type='percentile'`. For detailed information, refer to https://github.com/ACCLAB/DABEST-python/issues/129 \n",
874-
"\n",
875-
" warnings.warn(message=mes1+mes2, category=UserWarning)\n"
876-
]
877-
},
878868
{
879869
"data": {
880870
"text/plain": [
881-
"DABEST v2023.03.29\n",
871+
"DABEST v2024.03.29\n",
882872
"==================\n",
883873
" \n",
884874
"Good afternoon!\n",
885-
"The current time is Tue Apr 18 14:47:28 2023.\n",
875+
"The current time is Tue Mar 19 15:33:26 2024.\n",
886876
"\n",
887877
"The unpaired median difference between control and test is 0.5 [95%CI -0.0758, 0.991].\n",
888878
"The p-value of the two-sided permutation t-test is 0.103, calculated for legacy purposes only. \n",
889879
"\n",
890880
"5000 bootstrap samples were taken; the confidence interval is bias-corrected and accelerated.\n",
891881
"Any p-value reported is the probability of observing theeffect size (or greater),\n",
892-
"assuming the null hypothesis ofzero difference is true.\n",
882+
"assuming the null hypothesis of zero difference is true.\n",
893883
"For each p-value, 5000 reshuffles of the control and test labels were performed.\n",
894884
"\n",
895885
"To get the results of all valid statistical tests, use `.median_diff.statistical_tests`"
@@ -957,18 +947,18 @@
957947
{
958948
"data": {
959949
"text/plain": [
960-
"DABEST v2023.03.29\n",
950+
"DABEST v2024.03.29\n",
961951
"==================\n",
962952
" \n",
963953
"Good afternoon!\n",
964-
"The current time is Tue Apr 18 14:47:29 2023.\n",
954+
"The current time is Tue Mar 19 15:33:27 2024.\n",
965955
"\n",
966956
"The unpaired Cohen's d between control and test is 0.471 [95%CI -0.0843, 0.976].\n",
967957
"The p-value of the two-sided permutation t-test is 0.0758, calculated for legacy purposes only. \n",
968958
"\n",
969959
"5000 bootstrap samples were taken; the confidence interval is bias-corrected and accelerated.\n",
970960
"Any p-value reported is the probability of observing theeffect size (or greater),\n",
971-
"assuming the null hypothesis ofzero difference is true.\n",
961+
"assuming the null hypothesis of zero difference is true.\n",
972962
"For each p-value, 5000 reshuffles of the control and test labels were performed.\n",
973963
"\n",
974964
"To get the results of all valid statistical tests, use `.cohens_d.statistical_tests`"
@@ -1051,18 +1041,18 @@
10511041
{
10521042
"data": {
10531043
"text/plain": [
1054-
"DABEST v2023.03.29\n",
1044+
"DABEST v2024.03.29\n",
10551045
"==================\n",
10561046
" \n",
10571047
"Good afternoon!\n",
1058-
"The current time is Tue Apr 18 14:47:30 2023.\n",
1048+
"The current time is Tue Mar 19 15:33:29 2024.\n",
10591049
"\n",
10601050
"The unpaired Cohen's h between control and test is 0.0 [95%CI -0.613, 0.429].\n",
10611051
"The p-value of the two-sided permutation t-test is 0.799, calculated for legacy purposes only. \n",
10621052
"\n",
10631053
"5000 bootstrap samples were taken; the confidence interval is bias-corrected and accelerated.\n",
10641054
"Any p-value reported is the probability of observing theeffect size (or greater),\n",
1065-
"assuming the null hypothesis ofzero difference is true.\n",
1055+
"assuming the null hypothesis of zero difference is true.\n",
10661056
"For each p-value, 5000 reshuffles of the control and test labels were performed.\n",
10671057
"\n",
10681058
"To get the results of all valid statistical tests, use `.cohens_h.statistical_tests`"
@@ -1126,18 +1116,18 @@
11261116
{
11271117
"data": {
11281118
"text/plain": [
1129-
"DABEST v2023.03.29\n",
1119+
"DABEST v2024.03.29\n",
11301120
"==================\n",
11311121
" \n",
11321122
"Good afternoon!\n",
1133-
"The current time is Tue Apr 18 14:47:32 2023.\n",
1123+
"The current time is Tue Mar 19 15:33:30 2024.\n",
11341124
"\n",
11351125
"The unpaired Hedges' g between control and test is 0.465 [95%CI -0.0832, 0.963].\n",
11361126
"The p-value of the two-sided permutation t-test is 0.0758, calculated for legacy purposes only. \n",
11371127
"\n",
11381128
"5000 bootstrap samples were taken; the confidence interval is bias-corrected and accelerated.\n",
11391129
"Any p-value reported is the probability of observing theeffect size (or greater),\n",
1140-
"assuming the null hypothesis ofzero difference is true.\n",
1130+
"assuming the null hypothesis of zero difference is true.\n",
11411131
"For each p-value, 5000 reshuffles of the control and test labels were performed.\n",
11421132
"\n",
11431133
"To get the results of all valid statistical tests, use `.hedges_g.statistical_tests`"
@@ -1200,18 +1190,18 @@
12001190
{
12011191
"data": {
12021192
"text/plain": [
1203-
"DABEST v2023.03.29\n",
1193+
"DABEST v2024.03.29\n",
12041194
"==================\n",
12051195
" \n",
12061196
"Good afternoon!\n",
1207-
"The current time is Tue Apr 18 14:47:40 2023.\n",
1197+
"The current time is Tue Mar 19 15:33:41 2024.\n",
12081198
"\n",
12091199
"The unpaired Cliff's delta between control and test is 0.28 [95%CI -0.0244, 0.533].\n",
12101200
"The p-value of the two-sided permutation t-test is 0.061, calculated for legacy purposes only. \n",
12111201
"\n",
12121202
"5000 bootstrap samples were taken; the confidence interval is bias-corrected and accelerated.\n",
12131203
"Any p-value reported is the probability of observing theeffect size (or greater),\n",
1214-
"assuming the null hypothesis ofzero difference is true.\n",
1204+
"assuming the null hypothesis of zero difference is true.\n",
12151205
"For each p-value, 5000 reshuffles of the control and test labels were performed.\n",
12161206
"\n",
12171207
"To get the results of all valid statistical tests, use `.cliffs_delta.statistical_tests`"
@@ -1271,20 +1261,20 @@
12711261
{
12721262
"data": {
12731263
"text/plain": [
1274-
"DABEST v2023.02.14\n",
1264+
"DABEST v2024.03.29\n",
12751265
"==================\n",
12761266
" \n",
1277-
"Good morning!\n",
1278-
"The current time is Tue May 16 01:11:14 2023.\n",
1267+
"Good afternoon!\n",
1268+
"The current time is Tue Mar 19 15:33:45 2024.\n",
12791269
"\n",
1280-
"The unpaired deltas' g between W Placebo and M Placebo is 0.793 [95%CI 0.553, 1.1].\n",
1270+
"The unpaired deltas' g between W Placebo and M Placebo is 1.74 [95%CI 1.1, 2.31].\n",
12811271
"The p-value of the two-sided permutation t-test is 0.0, calculated for legacy purposes only. \n",
12821272
"\n",
1283-
"The unpaired deltas' g between W Drug and M Drug is 0.528 [95%CI 0.286, 0.765].\n",
1273+
"The unpaired deltas' g between W Drug and M Drug is 1.33 [95%CI 0.611, 1.96].\n",
12841274
"The p-value of the two-sided permutation t-test is 0.0, calculated for legacy purposes only. \n",
12851275
"\n",
1286-
"The deltas' g between Placebo and Drug is -0.651 [95%CI -1.6, 0.217].\n",
1287-
"The p-value of the two-sided permutation t-test is 0.0, calculated for legacy purposes only. \n",
1276+
"The deltas' g between Placebo and Drug is -0.651 [95%CI -1.59, 0.165].\n",
1277+
"The p-value of the two-sided permutation t-test is 0.0694, calculated for legacy purposes only. \n",
12881278
"\n",
12891279
"5000 bootstrap samples were taken; the confidence interval is bias-corrected and accelerated.\n",
12901280
"Any p-value reported is the probability of observing the effect size (or greater),\n",
@@ -1360,14 +1350,6 @@
13601350
"\n",
13611351
"$\\Delta_{g} = \\frac{\\Delta_{\\Delta}}{s_{\\Delta_{\\Delta}}}$"
13621352
]
1363-
},
1364-
{
1365-
"cell_type": "code",
1366-
"execution_count": null,
1367-
"id": "07a84d5f",
1368-
"metadata": {},
1369-
"outputs": [],
1370-
"source": []
13711353
}
13721354
],
13731355
"metadata": {

nbs/API/delta_objects.ipynb

Lines changed: 13 additions & 6 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)