staplot 0.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. staplot/__init__.py +1 -0
  2. staplot/api.py +441 -0
  3. staplot/main.py +21 -0
  4. staplot/models/__init__.py +1 -0
  5. staplot/models/project.py +461 -0
  6. staplot/plots/__init__.py +14 -0
  7. staplot/plots/bar.py +104 -0
  8. staplot/plots/before_after.py +110 -0
  9. staplot/plots/bland_altman.py +73 -0
  10. staplot/plots/box.py +95 -0
  11. staplot/plots/distribution_plot.py +188 -0
  12. staplot/plots/grouped_bar.py +112 -0
  13. staplot/plots/heatmap.py +73 -0
  14. staplot/plots/histogram.py +76 -0
  15. staplot/plots/qq.py +61 -0
  16. staplot/plots/residuals.py +72 -0
  17. staplot/plots/roc_plot.py +40 -0
  18. staplot/plots/scatter.py +61 -0
  19. staplot/plots/significance.py +94 -0
  20. staplot/plots/styles.py +154 -0
  21. staplot/plots/survival.py +78 -0
  22. staplot/plots/volcano.py +110 -0
  23. staplot/stats/__init__.py +15 -0
  24. staplot/stats/anova.py +124 -0
  25. staplot/stats/chi_square.py +85 -0
  26. staplot/stats/correlation.py +71 -0
  27. staplot/stats/curve_fit.py +85 -0
  28. staplot/stats/descriptive.py +52 -0
  29. staplot/stats/distribution.py +223 -0
  30. staplot/stats/multiple_comparisons.py +104 -0
  31. staplot/stats/normality.py +67 -0
  32. staplot/stats/outliers.py +62 -0
  33. staplot/stats/power.py +130 -0
  34. staplot/stats/regression.py +95 -0
  35. staplot/stats/repeated_measures.py +114 -0
  36. staplot/stats/roc.py +196 -0
  37. staplot/stats/tests.py +142 -0
  38. staplot/stats/two_way_anova.py +88 -0
  39. staplot/ui/__init__.py +0 -0
  40. staplot/ui/analysis_dialog.py +406 -0
  41. staplot/ui/axis_dialog.py +104 -0
  42. staplot/ui/computed_column_dialog.py +261 -0
  43. staplot/ui/contingency_table_widget.py +158 -0
  44. staplot/ui/data_table_widget.py +277 -0
  45. staplot/ui/distribution_inspector.py +431 -0
  46. staplot/ui/figure_layout_widget.py +236 -0
  47. staplot/ui/graph_gallery.py +117 -0
  48. staplot/ui/graph_options_dialog.py +325 -0
  49. staplot/ui/grouped_table_widget.py +190 -0
  50. staplot/ui/layout_dialog.py +218 -0
  51. staplot/ui/main_window.py +1126 -0
  52. staplot/ui/multiple_comparisons_dialog.py +168 -0
  53. staplot/ui/navigator.py +88 -0
  54. staplot/ui/plot_canvas.py +251 -0
  55. staplot/ui/power_dialog.py +108 -0
  56. staplot/ui/report_dialog.py +255 -0
  57. staplot/ui/reshape_dialog.py +286 -0
  58. staplot/ui/results_widget.py +19 -0
  59. staplot/ui/standard_curve_dialog.py +150 -0
  60. staplot/ui/test_wizard.py +252 -0
  61. staplot/ui/transform_dialog.py +137 -0
  62. staplot/ui/undo_commands.py +86 -0
  63. staplot-0.1.0.dist-info/METADATA +85 -0
  64. staplot-0.1.0.dist-info/RECORD +68 -0
  65. staplot-0.1.0.dist-info/WHEEL +5 -0
  66. staplot-0.1.0.dist-info/entry_points.txt +2 -0
  67. staplot-0.1.0.dist-info/licenses/LICENSE +24 -0
  68. staplot-0.1.0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,85 @@
1
+ Metadata-Version: 2.4
2
+ Name: staplot
3
+ Version: 0.1.0
4
+ Summary: Statistical analysis and publication-quality plotting — a GraphPad Prism replacement
5
+ Author: Benoit Aigouy
6
+ License: BSD-2-Clause
7
+ Project-URL: Homepage, https://github.com/baigouy/staplot
8
+ Classifier: Programming Language :: Python :: 3
9
+ Classifier: License :: OSI Approved :: BSD License
10
+ Classifier: Operating System :: OS Independent
11
+ Requires-Python: >=3.10
12
+ Description-Content-Type: text/markdown
13
+ License-File: LICENSE
14
+ Requires-Dist: qtpy
15
+ Requires-Dist: PyQt6
16
+ Requires-Dist: matplotlib
17
+ Requires-Dist: numpy
18
+ Requires-Dist: scipy
19
+ Requires-Dist: statsmodels
20
+ Requires-Dist: pandas
21
+ Provides-Extra: excel
22
+ Requires-Dist: openpyxl; extra == "excel"
23
+ Dynamic: license-file
24
+
25
+ # staplot
26
+
27
+ Statistical analysis and publication-quality plots for biologists: a free,
28
+ open-source alternative to GraphPad Prism, with a desktop app and a small Python API.
29
+
30
+ ## Features
31
+
32
+ - **Data tables** Prism-style (one column per group) or long format; CSV and Excel
33
+ import (semicolon / decimal-comma CSVs included).
34
+ - **Tests:** t-tests (Welch, paired), Mann-Whitney, Wilcoxon, one- and two-way ANOVA,
35
+ repeated measures, Kruskal-Wallis, post-hoc tests (Tukey, Dunn, ...), chi-square,
36
+ correlation, linear and nonlinear regression (curve fitting), normality tests,
37
+ outliers, ROC, survival, power analysis.
38
+ - **Plots:** bar, box, violin, scatter, grouped bar, before/after, histogram, QQ,
39
+ residuals, Bland-Altman, heatmap, volcano, ROC and survival curves, with
40
+ significance brackets added automatically.
41
+ - A test wizard that picks the right test for your data and explains why.
42
+
43
+ ## Install
44
+
45
+ ```
46
+ pip install staplot # add [excel] for .xlsx import
47
+ ```
48
+
49
+ Python 3.10 or newer.
50
+
51
+ ## Use
52
+
53
+ Desktop app:
54
+
55
+ ```
56
+ staplot
57
+ ```
58
+
59
+ From Python (no GUI needed, safe to run headless):
60
+
61
+ ```python
62
+ from staplot import api
63
+
64
+ table = api.table_from_csv("counts.csv") # one column per group
65
+ stats = api.auto_test(table) # picks the test, returns p-values
66
+ fig, record = api.plot(table, kind="box") # matplotlib Figure with brackets
67
+ fig.savefig("counts.pdf")
68
+ ```
69
+
70
+ `auto_test` checks normality per group (Shapiro-Wilk) and chooses Welch's t-test or
71
+ Mann-Whitney for two groups, and one-way ANOVA + Tukey or Kruskal-Wallis + Dunn for
72
+ more.
73
+
74
+ staplot draws the plot panels of [PyFigures](https://github.com/baigouy/PyFigures).
75
+
76
+ ## Tests
77
+
78
+ ```
79
+ pip install pytest pytest-qt
80
+ python -m pytest tests
81
+ ```
82
+
83
+ ## License
84
+
85
+ BSD 2-Clause, see [LICENSE](LICENSE).
@@ -0,0 +1,68 @@
1
+ staplot/__init__.py,sha256=QTYqXqSTHFRkM9TEgpDFcHvwLbvqHDqvqfQ9EiXkcAM,23
2
+ staplot/api.py,sha256=HRzXLqoPGSxcaYwWUfWeiF-4RRNbtpdJBsz6X0uGCEw,19085
3
+ staplot/main.py,sha256=mzYHVbEf518E-Iw_DSIrNaBIP1GcheM2GUTRPtciJLc,451
4
+ staplot/models/__init__.py,sha256=rryJZhrEfMxOoXFEI3QmAnfPKytLNCeUmIEXAwqiGJg,100
5
+ staplot/models/project.py,sha256=IZCgYeIDMY3tWQokLoQPchDSlOm5K8jdy0Fd0eR3xT0,16645
6
+ staplot/plots/__init__.py,sha256=EUYF__AD0_3qESwZSENXq3k09LTHmSlKg8ge7CY7IZo,538
7
+ staplot/plots/bar.py,sha256=QjWyQ-K93Hp76Wq4Y1_LhohxczzzJQlG1YHuHTRNBkM,3508
8
+ staplot/plots/before_after.py,sha256=9vnymVkUvazS7VSot2uu-eFq2zD7eXmP5lX3pl4Hz0c,3918
9
+ staplot/plots/bland_altman.py,sha256=nnXtghWG25I9LeGEnvzVa4vF4q0uBNIjaoEuvc0T2mI,2382
10
+ staplot/plots/box.py,sha256=1tBwtRoKOY8TXtqVv6FqOQGJV7uMKw--O2IQ3YmCuRk,3440
11
+ staplot/plots/distribution_plot.py,sha256=rrje3n1N6lamRmE9hBGS4H3Gf_qKEKgJ3WCBfTXHr6E,7066
12
+ staplot/plots/grouped_bar.py,sha256=20Iq4fKDjEVdsTthKq8OlVUBYU3ynOaLvf7kWop8rwc,3931
13
+ staplot/plots/heatmap.py,sha256=lnDW-k3Qe36UK0Z8eB5UydYoFNwJ1BdEe-8LYH55v8I,2443
14
+ staplot/plots/histogram.py,sha256=qxllW89cbnQUa0wVvjVqsrvcTQFUdyd7WBJKFqBz20c,2378
15
+ staplot/plots/qq.py,sha256=LX8X5DaDjM7TNx5_PLFNlwws1u35etUXYnq5AewmEJ4,2229
16
+ staplot/plots/residuals.py,sha256=SUeGaQ-4KyRv2PIfk8W_m9grWNHjAhUH1I7771EyKkw,2685
17
+ staplot/plots/roc_plot.py,sha256=rXHNYA0LSjwCRww3wSqd_mkAdQIQCQiuDkAAmRx07h0,1228
18
+ staplot/plots/scatter.py,sha256=R-YRRmTSii1BGkaQFO61fLPD6SxtTtRZysq7BO37CvI,2121
19
+ staplot/plots/significance.py,sha256=QkuYeSRiV2pQaPBxT8JKUkWUAgmHKbTY8e28jH367jE,3298
20
+ staplot/plots/styles.py,sha256=MKUy_7-bYh3HzrxRJ-bImXv1EmyM5SZJdP7FZ2CbsvY,4618
21
+ staplot/plots/survival.py,sha256=pFcFCEa4BxU01ru7KvoDs1MWKJakZ3MhuhtE8jDkrA4,2649
22
+ staplot/plots/volcano.py,sha256=T4tYSMfppLkyLQ2iWsJgOsSxxvZGXpTMLrSrCaSUgg0,4457
23
+ staplot/stats/__init__.py,sha256=Se10372p5Gss4B5yXk4Go2CXDe4syKvdguSnEYXSQ3g,795
24
+ staplot/stats/anova.py,sha256=FCEm4ayN-XORhJUxgiqw85jQJ8vtqtzUw_CoVTeKPRI,4427
25
+ staplot/stats/chi_square.py,sha256=FZE1Gw0F62RFUWT08w-c-fTpg9SbIp_j3j-qxmbzqy8,3131
26
+ staplot/stats/correlation.py,sha256=xOWb91uxswTzUWU96XMfIBdI_P1ZHCe_HqyX7t548SM,2191
27
+ staplot/stats/curve_fit.py,sha256=t5SgD7T2Qj2eavm3WX-a8DWyI5u6d-XuSDtdVjAAOWs,2583
28
+ staplot/stats/descriptive.py,sha256=OqHL_mUZoZggy-P2oUcNg2SJOaATfC6WQ6jHNGQDnN0,1397
29
+ staplot/stats/distribution.py,sha256=PmCOTvvLmqlzVM29_K8G9JtLIsZS0vfwCOc0s8C4tBI,8918
30
+ staplot/stats/multiple_comparisons.py,sha256=nF8V4oJCgFfvALfLm5krSS_5mmDnK-FiAWSgzSEhqH4,3511
31
+ staplot/stats/normality.py,sha256=IWqD1tFK20j4mW1biXwKZkbR2_BCfxbibnvXsugOVoU,2550
32
+ staplot/stats/outliers.py,sha256=BSSvQVxMDDWKnMG7hbudDF1HUL6ZxwlNu_2A8QccdAc,2141
33
+ staplot/stats/power.py,sha256=u8Mb2oCuAnc001LKDIZiSVy9MHKF-atcdsH3Wb67Z0I,4992
34
+ staplot/stats/regression.py,sha256=OnJdBSGp_S1PUG7Otjwh085M-G07HMaddT_lSTnyN2U,3489
35
+ staplot/stats/repeated_measures.py,sha256=kXB-6KMAw0PWJ3eQOSTCHJyFlj8AxI-ca0-EnCOZViw,4313
36
+ staplot/stats/roc.py,sha256=FkmwPDBY9EIRfs0rVupPcPygjIn4e0fYek6XsuzRWxI,7854
37
+ staplot/stats/tests.py,sha256=z7DgmfzBFRJJuqA2U8C-vaVE_b-l5alqlEvv13Jj92k,4895
38
+ staplot/stats/two_way_anova.py,sha256=pZx_rI5SayefH71wgS5IlkndY4u9WP0mztiTWzRCVFY,3195
39
+ staplot/ui/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
40
+ staplot/ui/analysis_dialog.py,sha256=IUeUi-PHfXguGmq1yHLT7HHxbRSTlfDIlaWtKsd4wew,17073
41
+ staplot/ui/axis_dialog.py,sha256=_JLoURWLfXuv2W8-SQ5c4oLn6ZEN1KxtM5uV7lKYbWo,4078
42
+ staplot/ui/computed_column_dialog.py,sha256=TB7Tp1JRcav1kYX9KmfxIP_zN3zgwJ9mhouj487fu2E,10336
43
+ staplot/ui/contingency_table_widget.py,sha256=Na5bf1mZVpA1Q5QUgFU3m5YyIXq69e1EPjfAcR6omi0,6103
44
+ staplot/ui/data_table_widget.py,sha256=3HIWfWgD8KF76x8EgL-cQPgUvPHhhWqi2JXsuaLnOdU,11187
45
+ staplot/ui/distribution_inspector.py,sha256=IvfFW7-A8v0DCHL-fBEanEXad9KqO-M0UPFq_P8qnos,17903
46
+ staplot/ui/figure_layout_widget.py,sha256=wGCC2r-PjeKiqtmTT01NURsVJikmSCjJ3q-1q0dlpb0,9715
47
+ staplot/ui/graph_gallery.py,sha256=heOojIr6O51-nPzLfWbNLip7G2B3eBySvBA8-HoPKSw,3677
48
+ staplot/ui/graph_options_dialog.py,sha256=BGxmGdwk-mCuPSvx4CtenwQFV4MEykzousRrqZfMAvE,14218
49
+ staplot/ui/grouped_table_widget.py,sha256=DVO8Qf5KJCzRFh6shBku4B58IUUl3LkzHgyBcV-wqo8,7195
50
+ staplot/ui/layout_dialog.py,sha256=poqsXPKR31S0sa3FAkSII9Afvc8lap0AaEyKrzzAjLw,8047
51
+ staplot/ui/main_window.py,sha256=bFnPTScl2sLVWT9Ey4IKVNaIcd4VPGn8YMm-vccEaow,52775
52
+ staplot/ui/multiple_comparisons_dialog.py,sha256=InLsLv_h1RYjqWbzYsA9kZqO4D3cK4lZ7rVVWDl5ap4,6935
53
+ staplot/ui/navigator.py,sha256=hDseijnTVU9uj17LnKRK-lL5PiVbA1zp30HCF9Dwh2Y,3271
54
+ staplot/ui/plot_canvas.py,sha256=_P7zlKvlnS3E8c8JStKkyw1iMC9uAVoekFmLaOueMKg,9717
55
+ staplot/ui/power_dialog.py,sha256=7-UBpxWnGUHe0q_wpz7sNhV5nX6afZlpQfIo1x_qxK4,3904
56
+ staplot/ui/report_dialog.py,sha256=EZzuHP0X_dgAHygcBJBZx_GerQuUgXXxKhEEqtZfsEc,9780
57
+ staplot/ui/reshape_dialog.py,sha256=zvSfDZKk4zmBlsMoJUya04T0OpM810ecz-LhMD-wpOg,11058
58
+ staplot/ui/results_widget.py,sha256=CdKx3-Uv3LjoqW4hNTNc9MKui_IhU8qEXC8JTeh7HIM,598
59
+ staplot/ui/standard_curve_dialog.py,sha256=_xaGXmxfCgd6dnw9d3z-BVTQgyfFNYga_DLqxDQhpD8,5874
60
+ staplot/ui/test_wizard.py,sha256=bZVRamIkxQd8dh-X76Kf3wS-C0dhbGYB-82LkBVQ46A,9637
61
+ staplot/ui/transform_dialog.py,sha256=BPpN4WeNMPbQEyU8NKB-pfrbhVgjFjmP0eSL9tX-zkc,5205
62
+ staplot/ui/undo_commands.py,sha256=tRdXnslwHXY8sDHHicfx894K_jLQhlSlzcLZq_AdZck,2794
63
+ staplot-0.1.0.dist-info/licenses/LICENSE,sha256=ogMfc01vPUbgHZ0-65HdaNOPnTZxDo4-BrCf9JkixhQ,1320
64
+ staplot-0.1.0.dist-info/METADATA,sha256=ELE0-GM4bgOCOEpQPETSNC9SvolYB2A236sFHhrCH-Q,2580
65
+ staplot-0.1.0.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
66
+ staplot-0.1.0.dist-info/entry_points.txt,sha256=t9tb_CABVh-dk2D8IeecTBm5knqbZ7qKQ5e53mYJDQ4,46
67
+ staplot-0.1.0.dist-info/top_level.txt,sha256=H_X7xesByUq3dMKAuuPkniT_rv2kSufm5Ojp1aHYizk,8
68
+ staplot-0.1.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (84.2.1)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ staplot = staplot.main:main
@@ -0,0 +1,24 @@
1
+ BSD 2-Clause License
2
+
3
+ Copyright (c) 2026, baigouy
4
+
5
+ Redistribution and use in source and binary forms, with or without
6
+ modification, are permitted provided that the following conditions are met:
7
+
8
+ 1. Redistributions of source code must retain the above copyright notice, this
9
+ list of conditions and the following disclaimer.
10
+
11
+ 2. Redistributions in binary form must reproduce the above copyright notice,
12
+ this list of conditions and the following disclaimer in the documentation
13
+ and/or other materials provided with the distribution.
14
+
15
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
16
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
17
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
18
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
19
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
21
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
22
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
23
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
24
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -0,0 +1 @@
1
+ staplot