Skip to content

Releases: ACCLAB/DABEST-python

Dadar (v2025.03.27)

27 Mar 07:30
c9c2e83
Compare
Choose a tag to compare

Dear DABEST users,

DABEST "Dadar" (v2025.03.27) for Python is now released!

This new version of the DABEST Python library includes several new features and performance improvements. It’s a big one!

  1. Python 3.13 Support: DABEST now supports Python 3.10—3.13.

  2. Horizontal Plots: Users can now create horizontal layout plots, providing compact data visualization. This can be achieved by
    setting horizontal=True in the .plot() method. See the Horizontal Plots tutorial for more details.

  3. Forest Plots: Forest plots provide a simple and intuitive way to visualize many delta-delta (or delta g), mini-meta, or regular
    delta effect sizes at once from multiple different dabest objects without presenting the raw data. See the Forest Plots
    tutorial
    for more details.

  4. Gridkey: Users can now represent experimental labels in a ‘gridkey’ table. This can be accessed with the gridkey parameter
    in the .plot() method. See the gridkey section in the Plot Aesthetics tutorial for more details.

  5. Other Visualization Improvements:

    • Comparing means and effect sizes: The estimation plots now include three types of customizable visual features to enhance
      contextualization and comparison of means and effect sizes:

      • Bars for the mean of the observed values (raw_bars): Colored rectangles that extend from the zero line to the mean of
        each group’s raw data. These bars visually highlight the central tendency of the raw data.

      • Bars for effect size/s (contrast_bars): Similar to raw bars, these highlight the effect-size difference between two
        groups (typically test and control) in the contrast axis. They provide a visual representation of the differences between
        groups.

      • Summary bands (reference_band): An optional band or ribbon that can be added to emphasize a specific effect size’s
        confidence interval that is used as a reference range across the entire contrast axis. Unlike raw and contrast bars, these span
        horizontally (or vertically if horizontal=True) and are not displayed by default.

        Raw and contrast bars are shown by default. Users can customize these bars and add summary bands as needed. For detailed
        customization instructions, please refer to the Plot Aesthetics tutorial.

    • Tighter spacing in delta-delta and mini-meta plots: We have adjusted the spacing of delta-delta and mini-meta plots to reduce
      whitespace. The new format brings the overall effect size closer to the two-groups effect sizes. In addition, delta-delta plots now
      have a gap in the zero line to separate the delta-delta from the ∆ effect sizes.

    • Delta-delta effect sizes for proportion plots: In addition to continuous data, delta-delta plots now support binary data
      (proportions). This means that 2-way designs for binary outcomes can be analyzed with DABEST.

    • Proportion plots sample sizes: The sample size of each binary option for each group can now be displayed. These can be toggled on/off via the prop_sample_counts parameter.

    • Effect size lines for paired plots: Along with lines connecting paired observed values, the paired plots now also
      display lines linking the effect sizes within a group in the contrast axes. These lines can be toggled on/off via the contrast_paired_lines parameter.

    • Baseline error curves: To represent the baseline/control group in the contrast axes, it is now possible to plot the baseline dot
      and the baseline error curve. The dot is shown by default, while the curve can be toggled on/off via the show_baseline_ec
      parameter. This dot helps make it clear where the baseline comes from i.e. the control minus itself. The baseline error curve can
      be used to show that the baseline itself is an estimate inferred from the observed values of the control data.

    • Delta text: Effect-size deltas (e.g. mean differences) are now displayed as numerals next to their respective effect size. This
      can be toggled on/off via the delta_text parameter.

    • Empty circle color palette: A new swarmplot color palette modification is available for unpaired plots via the empty_circle parameter in the .plot() method. This option modifies the two-group swarmplots to have empty circles for the control group and filled circles for the experimental group.

  6. Miscellaneous Improvements & Adjustments

    • Numba for speed improvements: We have added Numba to speed up the various calculations in DABEST. Precalculations will be performed during import, which will help speed up the subsequent loading and plotting of data.

    • Terminology/naming updates: During the refactoring of the code, we have made several updates to the documentation and terminology to improve clarity and consistency. For example:

      • Plot arguments have been adjusted to bring more clarity and consistency in naming. Arguments relating to the rawdata plot
        axis will now be typically referred to with raw while arguments relating to the contrast axis will be referred to with contrast. For example, raw_label replaces swarm_label and bar_label. The various kwargs relating to each different type of plot (e.g., swarmplot_kwargs) remain unchanged.

      • The method to utilise the Delta g effect size is now via the .hedges_g.plot() method rather than creating a whole new Delta_g
        object as before. The functionality remains the same, it plots hedges_g effect sizes and then the Delta g effect size alongside these (if a delta-delta experiment was loaded correctly).

    • Updated tutorial pages: We have updated the tutorial pages to reflect the new features and changes. The tutorial pages are now
      more comprehensive and (hopefully!) more intuitive!

    • Results dataframe for delta-delta and mini-meta plots: A results dataframe can now be extracted for both the delta-delta
      and mini-meta effect size data (similar to the results dataframe for the regular effect sizes). These can be found via the
      .results attribute of the .delta_delta or .mini_meta object.


Contributors to this update were: Jonathan Anns (@JAnns98), Zinan Lu (@Jacobluke-), Kah Seng LIAN (@sunroofgod), Yishan Mai (@maiyishan), Sangyu Xu (@sangyu), and Lucas Wang Zhuoyu (@Lucas1213WZY)

Ondeh (v2024.03.29)

22 Mar 15:44
97585d1
Compare
Choose a tag to compare

Dear DABEST users,

DABEST "Ondeh" (v2024.03.29) for Python is now released!

This new version provides the following new features and improvements:

  1. New Paired Proportion Plot: This feature builds upon the existing proportion 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.
  2. 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.
  3. Standardized delta-delta effect size: We added a new metric deltas’ g akin to a Hedges’ g for delta-delta effect size, which allows comparisons between delta-delta effects generated from metrics with different units.
  4. 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.

Please see the updated documentation for more details and relevant tutorials.


Contributers to this update were: Zinan Lu (@Jacobluke-), Kah Seng LIAN (@sunroofgod), Ana Rosa Castillo (@cyberosa)

v2023.02.14

20 Mar 07:13
Compare
Choose a tag to compare

Dear DABEST users,

DABEST v2023.02.14 for Python is now released!

This new version provides the following new features:

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

  2. 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 Fisher's exact test.

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

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

Please see the updated documentation for more details and relevant tutorials.

v0.3.1

20 Oct 10:17
4bc6ff3
Compare
Choose a tag to compare

Update minimal version requirements in Python and dependencies

v0.3.0

30 Jan 09:49
b596a42
Compare
Choose a tag to compare
  • Implement permutation tests (Issue #93)
  • Refactor LqRT tests for performance (Issue #91)

v0.2.8

17 Jan 09:23
Compare
Choose a tag to compare
  1. add LqRT to statistical output (PR #85 for Issue #83, thanks to @adam2392.)
  2. Fix bugs with slopegraph_kwargs and reflines_kwargs (PR #86 for Issues #86 and #87, thanks to @DizietAsahi.)

v0.2.7

17 Jan 09:23
Compare
Choose a tag to compare

Bugfix for #79: Plots for Shared Control Groups with Different Number of Units #79

v0.2.6

08 Oct 08:13
efc0732
Compare
Choose a tag to compare

Feature additions:

  • It is now possible to specify a pre-determined matplotlib Axes to create the estimation plot in. See the new section in the tutorial for more information. (PR #73); thanks to Adam Nekimken (@anekimken).

Bug-fixes:

  • Ensure all dependencies are installed along with DABEST. (Issue #70, PR #71; thanks to Matthew Edwards (@mje-nz).
  • Handle infinities in bootstraps during plotting. (Issue #72, PR #74)

v0.2.5

04 Sep 09:58
0a68639
Compare
Choose a tag to compare

Upgrades to address

  • #45 (add Ns to results)
  • #51 (auto y-labels)

Bugfixes for

v0.2.4

17 May 05:58
6d18cda
Compare
Choose a tag to compare
Update release-notes.rst

Fix typo