staplot 0.1.0__tar.gz → 0.1.1__tar.gz
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.
- {staplot-0.1.0/staplot.egg-info → staplot-0.1.1}/PKG-INFO +10 -3
- {staplot-0.1.0 → staplot-0.1.1}/README.md +8 -2
- {staplot-0.1.0 → staplot-0.1.1}/pyproject.toml +2 -2
- staplot-0.1.1/staplot/__init__.py +1 -0
- staplot-0.1.1/staplot/api.py +2284 -0
- {staplot-0.1.0 → staplot-0.1.1}/staplot/plots/__init__.py +2 -1
- {staplot-0.1.0 → staplot-0.1.1}/staplot/plots/bar.py +10 -5
- {staplot-0.1.0 → staplot-0.1.1}/staplot/plots/before_after.py +15 -4
- staplot-0.1.1/staplot/plots/box.py +236 -0
- {staplot-0.1.0 → staplot-0.1.1}/staplot/plots/grouped_bar.py +13 -9
- staplot-0.1.1/staplot/plots/lines.py +74 -0
- {staplot-0.1.0 → staplot-0.1.1}/staplot/plots/scatter.py +10 -6
- staplot-0.1.1/staplot/plots/significance.py +171 -0
- {staplot-0.1.0 → staplot-0.1.1}/staplot/plots/styles.py +40 -0
- {staplot-0.1.0 → staplot-0.1.1}/staplot/ui/graph_options_dialog.py +1 -1
- {staplot-0.1.0 → staplot-0.1.1}/staplot/ui/main_window.py +12 -20
- {staplot-0.1.0 → staplot-0.1.1/staplot.egg-info}/PKG-INFO +10 -3
- {staplot-0.1.0 → staplot-0.1.1}/staplot.egg-info/SOURCES.txt +8 -0
- {staplot-0.1.0 → staplot-0.1.1}/staplot.egg-info/requires.txt +1 -0
- staplot-0.1.1/tests/test_bracket_layout_20261119.py +48 -0
- staplot-0.1.1/tests/test_missing_values.py +39 -0
- staplot-0.1.1/tests/test_plot_code.py +94 -0
- staplot-0.1.1/tests/test_plot_layout.py +399 -0
- staplot-0.1.1/tests/test_read_table.py +73 -0
- staplot-0.1.1/tests/test_stats_text_default.py +58 -0
- staplot-0.1.1/tests/test_table_import.py +82 -0
- staplot-0.1.0/staplot/__init__.py +0 -1
- staplot-0.1.0/staplot/api.py +0 -441
- staplot-0.1.0/staplot/plots/box.py +0 -95
- staplot-0.1.0/staplot/plots/significance.py +0 -94
- {staplot-0.1.0 → staplot-0.1.1}/LICENSE +0 -0
- {staplot-0.1.0 → staplot-0.1.1}/setup.cfg +0 -0
- {staplot-0.1.0 → staplot-0.1.1}/staplot/main.py +0 -0
- {staplot-0.1.0 → staplot-0.1.1}/staplot/models/__init__.py +0 -0
- {staplot-0.1.0 → staplot-0.1.1}/staplot/models/project.py +0 -0
- {staplot-0.1.0 → staplot-0.1.1}/staplot/plots/bland_altman.py +0 -0
- {staplot-0.1.0 → staplot-0.1.1}/staplot/plots/distribution_plot.py +0 -0
- {staplot-0.1.0 → staplot-0.1.1}/staplot/plots/heatmap.py +0 -0
- {staplot-0.1.0 → staplot-0.1.1}/staplot/plots/histogram.py +0 -0
- {staplot-0.1.0 → staplot-0.1.1}/staplot/plots/qq.py +0 -0
- {staplot-0.1.0 → staplot-0.1.1}/staplot/plots/residuals.py +0 -0
- {staplot-0.1.0 → staplot-0.1.1}/staplot/plots/roc_plot.py +0 -0
- {staplot-0.1.0 → staplot-0.1.1}/staplot/plots/survival.py +0 -0
- {staplot-0.1.0 → staplot-0.1.1}/staplot/plots/volcano.py +0 -0
- {staplot-0.1.0 → staplot-0.1.1}/staplot/stats/__init__.py +0 -0
- {staplot-0.1.0 → staplot-0.1.1}/staplot/stats/anova.py +0 -0
- {staplot-0.1.0 → staplot-0.1.1}/staplot/stats/chi_square.py +0 -0
- {staplot-0.1.0 → staplot-0.1.1}/staplot/stats/correlation.py +0 -0
- {staplot-0.1.0 → staplot-0.1.1}/staplot/stats/curve_fit.py +0 -0
- {staplot-0.1.0 → staplot-0.1.1}/staplot/stats/descriptive.py +0 -0
- {staplot-0.1.0 → staplot-0.1.1}/staplot/stats/distribution.py +0 -0
- {staplot-0.1.0 → staplot-0.1.1}/staplot/stats/multiple_comparisons.py +0 -0
- {staplot-0.1.0 → staplot-0.1.1}/staplot/stats/normality.py +0 -0
- {staplot-0.1.0 → staplot-0.1.1}/staplot/stats/outliers.py +0 -0
- {staplot-0.1.0 → staplot-0.1.1}/staplot/stats/power.py +0 -0
- {staplot-0.1.0 → staplot-0.1.1}/staplot/stats/regression.py +0 -0
- {staplot-0.1.0 → staplot-0.1.1}/staplot/stats/repeated_measures.py +0 -0
- {staplot-0.1.0 → staplot-0.1.1}/staplot/stats/roc.py +0 -0
- {staplot-0.1.0 → staplot-0.1.1}/staplot/stats/tests.py +0 -0
- {staplot-0.1.0 → staplot-0.1.1}/staplot/stats/two_way_anova.py +0 -0
- {staplot-0.1.0 → staplot-0.1.1}/staplot/ui/__init__.py +0 -0
- {staplot-0.1.0 → staplot-0.1.1}/staplot/ui/analysis_dialog.py +0 -0
- {staplot-0.1.0 → staplot-0.1.1}/staplot/ui/axis_dialog.py +0 -0
- {staplot-0.1.0 → staplot-0.1.1}/staplot/ui/computed_column_dialog.py +0 -0
- {staplot-0.1.0 → staplot-0.1.1}/staplot/ui/contingency_table_widget.py +0 -0
- {staplot-0.1.0 → staplot-0.1.1}/staplot/ui/data_table_widget.py +0 -0
- {staplot-0.1.0 → staplot-0.1.1}/staplot/ui/distribution_inspector.py +0 -0
- {staplot-0.1.0 → staplot-0.1.1}/staplot/ui/figure_layout_widget.py +0 -0
- {staplot-0.1.0 → staplot-0.1.1}/staplot/ui/graph_gallery.py +0 -0
- {staplot-0.1.0 → staplot-0.1.1}/staplot/ui/grouped_table_widget.py +0 -0
- {staplot-0.1.0 → staplot-0.1.1}/staplot/ui/layout_dialog.py +0 -0
- {staplot-0.1.0 → staplot-0.1.1}/staplot/ui/multiple_comparisons_dialog.py +0 -0
- {staplot-0.1.0 → staplot-0.1.1}/staplot/ui/navigator.py +0 -0
- {staplot-0.1.0 → staplot-0.1.1}/staplot/ui/plot_canvas.py +0 -0
- {staplot-0.1.0 → staplot-0.1.1}/staplot/ui/power_dialog.py +0 -0
- {staplot-0.1.0 → staplot-0.1.1}/staplot/ui/report_dialog.py +0 -0
- {staplot-0.1.0 → staplot-0.1.1}/staplot/ui/reshape_dialog.py +0 -0
- {staplot-0.1.0 → staplot-0.1.1}/staplot/ui/results_widget.py +0 -0
- {staplot-0.1.0 → staplot-0.1.1}/staplot/ui/standard_curve_dialog.py +0 -0
- {staplot-0.1.0 → staplot-0.1.1}/staplot/ui/test_wizard.py +0 -0
- {staplot-0.1.0 → staplot-0.1.1}/staplot/ui/transform_dialog.py +0 -0
- {staplot-0.1.0 → staplot-0.1.1}/staplot/ui/undo_commands.py +0 -0
- {staplot-0.1.0 → staplot-0.1.1}/staplot.egg-info/dependency_links.txt +0 -0
- {staplot-0.1.0 → staplot-0.1.1}/staplot.egg-info/entry_points.txt +0 -0
- {staplot-0.1.0 → staplot-0.1.1}/staplot.egg-info/top_level.txt +0 -0
- {staplot-0.1.0 → staplot-0.1.1}/tests/test_chatgpt_regressions.py +0 -0
- {staplot-0.1.0 → staplot-0.1.1}/tests/test_review_fixes.py +0 -0
- {staplot-0.1.0 → staplot-0.1.1}/tests/test_styles_scoped.py +0 -0
- {staplot-0.1.0 → staplot-0.1.1}/tests/test_tick_labels.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: staplot
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.1
|
|
4
4
|
Summary: Statistical analysis and publication-quality plotting — a GraphPad Prism replacement
|
|
5
5
|
Author: Benoit Aigouy
|
|
6
6
|
License: BSD-2-Clause
|
|
@@ -20,6 +20,7 @@ Requires-Dist: statsmodels
|
|
|
20
20
|
Requires-Dist: pandas
|
|
21
21
|
Provides-Extra: excel
|
|
22
22
|
Requires-Dist: openpyxl; extra == "excel"
|
|
23
|
+
Requires-Dist: xlrd; extra == "excel"
|
|
23
24
|
Dynamic: license-file
|
|
24
25
|
|
|
25
26
|
# staplot
|
|
@@ -35,7 +36,7 @@ open-source alternative to GraphPad Prism, with a desktop app and a small Python
|
|
|
35
36
|
repeated measures, Kruskal-Wallis, post-hoc tests (Tukey, Dunn, ...), chi-square,
|
|
36
37
|
correlation, linear and nonlinear regression (curve fitting), normality tests,
|
|
37
38
|
outliers, ROC, survival, power analysis.
|
|
38
|
-
- **Plots:** bar, box, violin, scatter, grouped bar, before/after, histogram, QQ,
|
|
39
|
+
- **Plots:** bar, box, violin (whole or half: `violin_side="left"`), split violin (`kind="split_violin"`: two conditions as the two halves, each pair tested), scatter, grouped bar, before/after, histogram, QQ,
|
|
39
40
|
residuals, Bland-Altman, heatmap, volcano, ROC and survival curves, with
|
|
40
41
|
significance brackets added automatically.
|
|
41
42
|
- A test wizard that picks the right test for your data and explains why.
|
|
@@ -43,7 +44,7 @@ open-source alternative to GraphPad Prism, with a desktop app and a small Python
|
|
|
43
44
|
## Install
|
|
44
45
|
|
|
45
46
|
```
|
|
46
|
-
pip install staplot # add [excel] for .xlsx import
|
|
47
|
+
pip install staplot # add [excel] for .xlsx / .xls import
|
|
47
48
|
```
|
|
48
49
|
|
|
49
50
|
Python 3.10 or newer.
|
|
@@ -67,6 +68,12 @@ fig, record = api.plot(table, kind="box") # matplotlib Figure with brackets
|
|
|
67
68
|
fig.savefig("counts.pdf")
|
|
68
69
|
```
|
|
69
70
|
|
|
71
|
+
Tables can be CSV / TSV / TXT (separator and decimal comma detected) or Excel
|
|
72
|
+
sheets: `api.table_from_csv("book.xlsx::counts")` reads the sheet *counts* (by name
|
|
73
|
+
or number from 1; the first sheet without `::`). `api.read_table(path)` gives the
|
|
74
|
+
DataFrame, `api.list_sheets(path)` the sheet names, and
|
|
75
|
+
`api.csv_cleaning_report(path)` what was left out (empty cells, NA, typos).
|
|
76
|
+
|
|
70
77
|
`auto_test` checks normality per group (Shapiro-Wilk) and chooses Welch's t-test or
|
|
71
78
|
Mann-Whitney for two groups, and one-way ANOVA + Tukey or Kruskal-Wallis + Dunn for
|
|
72
79
|
more.
|
|
@@ -11,7 +11,7 @@ open-source alternative to GraphPad Prism, with a desktop app and a small Python
|
|
|
11
11
|
repeated measures, Kruskal-Wallis, post-hoc tests (Tukey, Dunn, ...), chi-square,
|
|
12
12
|
correlation, linear and nonlinear regression (curve fitting), normality tests,
|
|
13
13
|
outliers, ROC, survival, power analysis.
|
|
14
|
-
- **Plots:** bar, box, violin, scatter, grouped bar, before/after, histogram, QQ,
|
|
14
|
+
- **Plots:** bar, box, violin (whole or half: `violin_side="left"`), split violin (`kind="split_violin"`: two conditions as the two halves, each pair tested), scatter, grouped bar, before/after, histogram, QQ,
|
|
15
15
|
residuals, Bland-Altman, heatmap, volcano, ROC and survival curves, with
|
|
16
16
|
significance brackets added automatically.
|
|
17
17
|
- A test wizard that picks the right test for your data and explains why.
|
|
@@ -19,7 +19,7 @@ open-source alternative to GraphPad Prism, with a desktop app and a small Python
|
|
|
19
19
|
## Install
|
|
20
20
|
|
|
21
21
|
```
|
|
22
|
-
pip install staplot # add [excel] for .xlsx import
|
|
22
|
+
pip install staplot # add [excel] for .xlsx / .xls import
|
|
23
23
|
```
|
|
24
24
|
|
|
25
25
|
Python 3.10 or newer.
|
|
@@ -43,6 +43,12 @@ fig, record = api.plot(table, kind="box") # matplotlib Figure with brackets
|
|
|
43
43
|
fig.savefig("counts.pdf")
|
|
44
44
|
```
|
|
45
45
|
|
|
46
|
+
Tables can be CSV / TSV / TXT (separator and decimal comma detected) or Excel
|
|
47
|
+
sheets: `api.table_from_csv("book.xlsx::counts")` reads the sheet *counts* (by name
|
|
48
|
+
or number from 1; the first sheet without `::`). `api.read_table(path)` gives the
|
|
49
|
+
DataFrame, `api.list_sheets(path)` the sheet names, and
|
|
50
|
+
`api.csv_cleaning_report(path)` what was left out (empty cells, NA, typos).
|
|
51
|
+
|
|
46
52
|
`auto_test` checks normality per group (Shapiro-Wilk) and chooses Welch's t-test or
|
|
47
53
|
Mann-Whitney for two groups, and one-way ANOVA + Tukey or Kruskal-Wallis + Dunn for
|
|
48
54
|
more.
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "staplot"
|
|
7
|
-
version = "0.1.
|
|
7
|
+
version = "0.1.1"
|
|
8
8
|
description = "Statistical analysis and publication-quality plotting — a GraphPad Prism replacement"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
license = {text = "BSD-2-Clause"}
|
|
@@ -27,7 +27,7 @@ dependencies = [
|
|
|
27
27
|
]
|
|
28
28
|
|
|
29
29
|
[project.optional-dependencies]
|
|
30
|
-
excel = ["openpyxl"]
|
|
30
|
+
excel = ["openpyxl", "xlrd"]
|
|
31
31
|
|
|
32
32
|
[project.urls]
|
|
33
33
|
Homepage = "https://github.com/baigouy/staplot"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.1.1"
|