Skip to main content

Vectorized equivalence and difference testing for quantitative omics data. TOST + Welch t-test with CV-based filtering, multiple testing correction, and power analysis.

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

questvar-0.1.0.tar.gz (50.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

questvar-0.1.0-py3-none-any.whl (59.8 kB view details)

Uploaded Python 3

File details

Details for the file questvar-0.1.0.tar.gz.

File metadata

  • Download URL: questvar-0.1.0.tar.gz
  • Upload date:
  • Size: 50.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for questvar-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b77a6789aff3c0a0f6e3bcb80e06d719ad0984da8c0b59bdc3e85931e556bce6
MD5 ef3171756fe5eb9d1eb156a3a521bbbf
BLAKE2b-256 7135e879eaba6fb87b92bcd8d594bbb5b3c5bea1cf65e69bf6bf168d2a962517

See more details on using hashes here.

Provenance

The following attestation bundles were made for questvar-0.1.0.tar.gz:

Publisher: release.yml on eneskemalergin/QuEStVar

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file questvar-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: questvar-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 59.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for questvar-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5f4adf3299c9cfcef013c18389423d2b75cf9945658d4470485bb0f588d89b4b
MD5 e81334491d8c66535c07db83855060ec
BLAKE2b-256 f3ce8d51e41722a01822e199cd8d2029699e028e7268a4f22c77fe33493cb99c

See more details on using hashes here.

Provenance

The following attestation bundles were made for questvar-0.1.0-py3-none-any.whl:

Publisher: release.yml on eneskemalergin/QuEStVar

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page