Pepkio Matched Null Gene Set Generator
Empirical confounder-matched negative control gene set generator for statistical calibration of pathway enrichment and transcriptomic analyses.
What It Does
The pepkio-matched-null-gene-set-generator Python package generates empirical negative control gene sets tailored to the exact length, expression level, GC content, and biotype characteristics of your input gene signature. It provides robust null distributions for Gene Set Enrichment Analysis (GSEA), fgsea, and clusterProfiler to eliminate false-positive pathway discoveries driven by technical sequencing confounders.
Features
- Multi-Feature Matching: Matches query gene signatures on baseline expression, transcript length, GC content, and biotype.
- Stratified Binning: Configurable tercile, quintile, and decile feature partitioning for balanced surrogate sampling.
- Statistical Balance Metrics: Calculates Standardized Mean Difference (SMD) and Kolmogorov-Smirnov (KS) metrics for quality control.
- Built-in Reference Organisms: Pre-compiled background databases for human, mouse, rat, zebrafish, fruit fly, C. elegans, and yeast.
- Custom Background Support: Allows upload of user-defined reference gene matrices and expression TPM datasets.
- Enrichment Exports: Outputs Gene Matrix Transposed (GMT) files, tabular CSVs, and R/Python downstream evaluation snippets.
- CLI & Python API: Usable as a scriptable Python library or a direct command-line tool.
Installation
pip install pepkio-matched-null-gene-set-generator
Or using uv:
uv add pepkio-matched-null-gene-set-generator
Quick Example
from pepkio_matched_null_gene_set_generator import PepkioClient
with PepkioClient() as client:
result = client.run({
"gene_list": "TP53\nBRCA1\nEGFR\nMYC\nKRAS",
"organism": "human",
"null_set_count": 3,
"seed": 42,
"match_expression": True,
"match_length": True,
"match_gc": True
})
print("Status:", result.status)
print("Generated GMT:\n", result.result["gmt_export"])
Typical Use Cases
- Empirical FDR Calibration in GSEA/fgsea: Generate 10–50 matched null sets to benchmark experimental enrichment scores against confound-matched null distributions.
- Transcript Length Bias Correction: Form negative control sets for differentially expressed gene lists with extreme transcript length distributions.
- Expression-Matched Background Controls: Control for baseline abundance in cell-type marker gene signatures in single-cell or bulk RNA-seq.
- CRISPR & RNAi Screen Validation: Test whether top candidate genes from functional genomic screens remain statistically enriched when comparing against size-matched control sets.
Scientific Background
In functional genomics and transcriptomics, gene length, GC content, and baseline expression levels systematically skew detection probabilities. Drawing naive uniformly random gene sets from the genome produces null distributions that do not account for these systematic biases. By stratifying background genomes into multi-dimensional covariate bins and validating balance with Standardized Mean Difference ($\text{SMD} < 0.1$), this package yields accurate empirical significance thresholds.
Web Application
For researchers who prefer an interactive graphical interface, a hosted web version is available with real-time balance histograms, ECDF visualizations, and one-click GMT downloads.
Web Application: https://www.pepkio.com/tools/matched-null-gene-set-generator
Documentation and Resources
- GitHub Repository: https://github.com/pepkio/pepkio-matched-null-gene-set-generator
- Web Application: https://www.pepkio.com/tools/matched-null-gene-set-generator
- PyPI Package: https://pypi.org/project/pepkio-matched-null-gene-set-generator/
About Pepkio
Pepkio (https://www.pepkio.com/) develops software tools and bioinformatics solutions for life science researchers, including laboratory calculators and analysis services (https://www.pepkio.com/cro).
Keywords
matched null gene set, GSEA negative controls, fgsea empirical null, gene set enrichment analysis, confounder matching, gene length bias, RNA-seq expression matching, GMT file export, clusterProfiler negative control, empirical FDR, biological negative control, transcript length confounder, GC content bias, stratified gene sampling, bioinformatics null model, human gene set matcher, mouse pathway control, zebrafish matched gene sets, yeast pathway null control, custom background gene enrichment, differential expression bias correction, camera pathway test calibration, topGO length bias, gseapy matched control, single-cell marker gene null set, CRISPR hit validation controls, multi-dimensional covariate binning, transcriptomics empirical FDR, bioinformatic negative control, reproducible gene set analysis
Metadata
Release files for pepkio-matched-null-gene-set-generator 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| pepkio_matched_null_gene_set_generator-0.1.0.tar.gz | 40.9 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pepkio_matched_null_gene_set_generator-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 50.9 kB
Release files / pepkio_matched_null_gene_set_generator-0.1.0.tar.gz
| Download URL | pepkio_matched_null_gene_set_generator-0.1.0.tar.gz |
|---|---|
| Size | 40.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2834eb871a482ef0dd0e872f3d44457f60d56cdb030118788dd33f62258ef912
|
|
BLAKE2b-256 checksum How to use checksums |
97cac255a7f75bbcc09315fa16d59d5b3e037a4f06664a7e17e0b2c7cbdfca5b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / pepkio_matched_null_gene_set_generator-0.1.0-py3-none-any.whl
| Download URL | pepkio_matched_null_gene_set_generator-0.1.0-py3-none-any.whl |
|---|---|
| Size | 10.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
01582acb28f7600b68cc7b0bdff335f23a2de891781931fdb64d4830a4c31fb4
|
|
BLAKE2b-256 checksum How to use checksums |
e4e6ca06183ff4559eeb61e771314a59b48694c9b7df901e3e3e38e5d1eef552
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for pepkio-matched-null-gene-set-generator 0.1.0
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.