Skip to main content

QuEStVar

Quantitative Exploration of Stability and Variability through statistical hypothesis testing

Version 0.1.0 Paper Documentation CI

Python 3.12+ NumPy 2.0+ SciPy 1.10+ Polars 1.0+ Matplotlib 3.10+ PyYAML 6.0+

QuEStVar is a testing utility for paired equivalence and difference testing. It is packaged and easy to access built around the logic we published with biological application: Statistical testing for protein equivalence identifies core functional modules conserved across 360 cancer cell lines.

The point is simple. A non-significant difference test does not mean two groups are equivalent. QuEStVar adds an equivalence test so that case is explicit instead of implied.

v0.1.0 is a stable minimum working version. The core workflow is complete and tested. Future releases will add multi-comparison analysis, expanded visualization, and deeper validation tools.

Features

  • Vectorized difference and equivalence testing across entire feature tables
  • CV quality filtering before statistical testing
  • Seven multiple testing correction methods: BH-FDR, Bonferroni, Holm, Hochberg, BY, q-value, or none
  • Antler plot combining TOST and t-test results
  • Eight-panel summary figure
  • Power analysis for experiment planning
  • CLI, Python API, and YAML config with identical results
  • CI-tested on Linux, macOS, and Windows

Installation

pip install questvar[plot,yaml]

For the core engine only (no plotting, no YAML config):

pip install questvar

Quick start

import polars as pl
from questvar import QuestVar

df = pl.read_csv("data/demo_realistic.tsv", separator="\t")
qv = QuestVar(cv_thr=1.0, eq_thr=0.5, df_thr=1.0, p_thr=0.05, correction="fdr")
results = qv.test(df, cond_1=["c1_0","c1_1","c1_2"], cond_2=["c2_0","c2_1","c2_2"])
print(results.summary())

# Eight-panel summary figure
results.plot(cond_1_label="Control", cond_2_label="Treatment")

Summary plot

Three statuses appear. Equivalent (+1) means the TOST test is significant and |log2FC| is below the equivalence boundary. Differential (-1) means the t-test is significant and |log2FC| is above the difference boundary. Not significant (0) means neither test was decisive. Excluded features failed the CV quality filter, some were testable but very high CV, and some were untestable due to missing values or zero variance (shows the stats in panel G.)

Documentation

Full documentation, tutorials, and API reference are at the documentation site.

CLI

questvar test --data input.parquet --cond-1 A1,A2,A3 --cond-2 B1,B2,B3 --output results.parquet
questvar power --eq-boundaries 0.1,0.3,0.5 --n-reps-list 3,5,10 --output power_results.parquet
questvar plot --type antlers --results results.parquet --output antlers.png

Roadmap

  • Multi-comparison analysis: metadata-driven pair generation, batch execution, per-pair and per-feature summaries.
  • Visualization expansion: stacked bar plots, RSM scatter, status heatmaps, agreement matrix for sophisticated summaries across multiple comparisons.
  • Validation tools: stability analysis, regression golden files, expanded hypothesis tests.
  • Documentation and publishing: mkdocstrings site, tutorial notebooks, PyPI release.

License

MIT License. See LICENSE for details.


Static cells in ice,
Strict bounds trace the quiet line,
Where twin shapes agree.

Metadata

Release files for questvar 0.1.0

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

Source distribution (sdist)

Source distribution for questvar 0.1.0
File Size Uploaded
questvar-0.1.0.tar.gz 50.1 kB Details

Built distribution (wheel)

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

Total release size: 109.8 kB

Release files / questvar-0.1.0.tar.gz

Download URL questvar-0.1.0.tar.gz
Size 50.1 kB
Tags Source
SHA-256 checksum
How to use checksums
b77a6789aff3c0a0f6e3bcb80e06d719ad0984da8c0b59bdc3e85931e556bce6
BLAKE2b-256 checksum
How to use checksums
7135e879eaba6fb87b92bcd8d594bbb5b3c5bea1cf65e69bf6bf168d2a962517
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 22, 2026.

Transparency log

Release files / questvar-0.1.0-py3-none-any.whl

Download URL questvar-0.1.0-py3-none-any.whl
Size 59.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5f4adf3299c9cfcef013c18389423d2b75cf9945658d4470485bb0f588d89b4b
BLAKE2b-256 checksum
How to use checksums
f3ce8d51e41722a01822e199cd8d2029699e028e7268a4f22c77fe33493cb99c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 22, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

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