Skip to main content

staplot

Statistical analysis and publication-quality plots for biologists: a free, open-source alternative to GraphPad Prism, with a desktop app and a small Python API.

Features

  • Data tables Prism-style (one column per group) or long format; CSV and Excel import (semicolon / decimal-comma CSVs included).
  • Tests: t-tests (Welch, paired), Mann-Whitney, Wilcoxon, one- and two-way ANOVA, repeated measures, Kruskal-Wallis, post-hoc tests (Tukey, Dunn, ...), chi-square, correlation, linear and nonlinear regression (curve fitting), normality tests, outliers, ROC, survival, power analysis.
  • 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, residuals, Bland-Altman, heatmap, volcano, ROC and survival curves, with significance brackets added automatically.
  • A test wizard that picks the right test for your data and explains why.

Install

pip install staplot            # add [excel] for .xlsx / .xls import

Python 3.10 or newer.

Use

Desktop app:

staplot

From Python (no GUI needed, safe to run headless):

from staplot import api

table = api.table_from_csv("counts.csv")       # one column per group
stats = api.auto_test(table)                   # picks the test, returns p-values
fig, record = api.plot(table, kind="box")      # matplotlib Figure with brackets
fig.savefig("counts.pdf")

Tables can be CSV / TSV / TXT (separator and decimal comma detected) or Excel sheets: api.table_from_csv("book.xlsx::counts") reads the sheet counts (by name or number from 1; the first sheet without ::). api.read_table(path) gives the DataFrame, api.list_sheets(path) the sheet names, and api.csv_cleaning_report(path) what was left out (empty cells, NA, typos).

auto_test checks normality per group (Shapiro-Wilk) and chooses Welch's t-test or Mann-Whitney for two groups, and one-way ANOVA + Tukey or Kruskal-Wallis + Dunn for more.

staplot draws the plot panels of PyFigures.

Tests

pip install pytest pytest-qt
python -m pytest tests

License

BSD 2-Clause, see LICENSE.

Metadata

Release files for staplot 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for staplot 0.1.1
File Size Uploaded Provenance Actions
staplot-0.1.1.tar.gz 145.9 kB Without provenance Details for staplot-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for staplot 0.1.1
File Interpreter ABI Platform Actions
staplot-0.1.1-py3-none-any.whl Python 3 none any Details for staplot-0.1.1-py3-none-any.whl

Total release size: 304.7 kB

Release files / staplot-0.1.1.tar.gz

Download URL staplot-0.1.1.tar.gz
Size 145.9 kB
Tags Source
SHA-256 checksum
How to use checksums
84dd6e6fe80f5504c9a57b39d30e830e0d0e598cda2c58660c1ebb13e86ef701
BLAKE2b-256 checksum
How to use checksums
5b433b92a6a7e85ad1e7b9514bbd749a7af5e7cee3e6af59db58f9008f91b987
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.15

Release files / staplot-0.1.1-py3-none-any.whl

Download URL staplot-0.1.1-py3-none-any.whl
Size 158.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1629f3f53f09b26df139d90f852fca0f2daad8742486c1ab259f7e82ba620683
BLAKE2b-256 checksum
How to use checksums
0608df2f23510a990d3502b0cd6ec69c2f51e9f95037333a6ed7d68c410970f9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.15

Security for staplot 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page