trevismd / statannotations

add statistical significance annotations on seaborn plots. Further development of statannot, with bugfixes, new features, and a different API.
Other
639 stars 71 forks source link

Create Annotation, rename box_pairs and box_ to group #24

Closed trevismd closed 3 years ago

trevismd commented 3 years ago

In this PR, more responsibility is extracted from Annotator towards an Annotation class. Annotation objects now link the plot structures (boxes for boxplots) to the statistical result or custom annotation.

Also, it was time to rename the variables from box_ to group_ as the package is definitely not only about boxplots.

codecov[bot] commented 3 years ago

Codecov Report

Merging #24 (550f9aa) into dev (3fa71da) will increase coverage by 0.40%. The diff coverage is 96.29%.

Impacted file tree graph

@@            Coverage Diff             @@
##              dev      #24      +/-   ##
==========================================
+ Coverage   94.67%   95.07%   +0.40%     
==========================================
  Files          24       27       +3     
  Lines        1520     1604      +84     
==========================================
+ Hits         1439     1525      +86     
+ Misses         81       79       -2     
Impacted Files Coverage Δ
statannotations/stats/test.py 100.00% <ø> (ø)
statannotations/PValueFormat.py 96.62% <80.00%> (-2.14%) :arrow_down:
statannotations/Annotator.py 87.42% <89.39%> (+0.89%) :arrow_up:
statannotations/_Plotter.py 87.27% <98.87%> (+2.13%) :arrow_up:
statannotations/Annotation.py 100.00% <100.00%> (ø)
statannotations/_Xpositions.py 97.05% <100.00%> (+0.50%) :arrow_up:
statannotations/_version.py 100.00% <100.00%> (ø)
statannotations/stats/StatTest.py 100.00% <100.00%> (ø)
statannotations/utils.py 100.00% <100.00%> (ø)
tests/test_annotation.py 100.00% <100.00%> (ø)
... and 7 more

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 3fa71da...550f9aa. Read the comment docs.