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
Quantitative Exploration of Stability and Variability through statistical hypothesis testing
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")
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.
- Quick start tutorial
- Power analysis tutorial
- Configuration guide
- Plotting guide
- CLI reference
- API reference
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b77a6789aff3c0a0f6e3bcb80e06d719ad0984da8c0b59bdc3e85931e556bce6
|
|
| MD5 |
ef3171756fe5eb9d1eb156a3a521bbbf
|
|
| BLAKE2b-256 |
7135e879eaba6fb87b92bcd8d594bbb5b3c5bea1cf65e69bf6bf168d2a962517
|
Provenance
The following attestation bundles were made for questvar-0.1.0.tar.gz:
Publisher:
release.yml on eneskemalergin/QuEStVar
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
questvar-0.1.0.tar.gz -
Subject digest:
b77a6789aff3c0a0f6e3bcb80e06d719ad0984da8c0b59bdc3e85931e556bce6 - Sigstore transparency entry: 1605959139
- Sigstore integration time:
-
Permalink:
eneskemalergin/QuEStVar@1d7834286a257db4348f7c4fc6089eec959d23e9 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/eneskemalergin
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@1d7834286a257db4348f7c4fc6089eec959d23e9 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5f4adf3299c9cfcef013c18389423d2b75cf9945658d4470485bb0f588d89b4b
|
|
| MD5 |
e81334491d8c66535c07db83855060ec
|
|
| BLAKE2b-256 |
f3ce8d51e41722a01822e199cd8d2029699e028e7268a4f22c77fe33493cb99c
|
Provenance
The following attestation bundles were made for questvar-0.1.0-py3-none-any.whl:
Publisher:
release.yml on eneskemalergin/QuEStVar
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
questvar-0.1.0-py3-none-any.whl -
Subject digest:
5f4adf3299c9cfcef013c18389423d2b75cf9945658d4470485bb0f588d89b4b - Sigstore transparency entry: 1605959304
- Sigstore integration time:
-
Permalink:
eneskemalergin/QuEStVar@1d7834286a257db4348f7c4fc6089eec959d23e9 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/eneskemalergin
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@1d7834286a257db4348f7c4fc6089eec959d23e9 -
Trigger Event:
push
-
Statement type: