This project has been archived by its maintainers, and is no longer receiving any updates.
⚠️ genbenchQC is now
genomic-benchmarks-qcThis package has been renamed, and 1.2.0 is its final release — nothing in it has changed since 1.1.0 except this notice. The tool continues under the new name, with the same two checks, a rewritten report and a documentation site.
pip install genomic-benchmarks-qc— then usegb-qcwhere you usedgenbenchQC. Both subcommands keep their names.
- PyPI — https://pypi.org/project/genomic-benchmarks-qc/
- Documentation — https://genomic-benchmarks.github.io/genomic-benchmarks-qc/
- Source — https://github.com/genomic-benchmarks/genomic-benchmarks-qc
On Python 3.12 or newer, installing this package installs the new one with it.
Everything below describes the old tool, and is kept only for reference.
Automated Quality Control for Genomic Machine Learning Datasets
GenBenchQC is a Python package and CLI toolkit for automated quality control of genomic datasets used in machine learning. It helps detect biases, inconsistencies, and potential data leakage across sequences, dataset classes, and train-test splits — ensuring your datasets are reliable before model training.
Features
Provided Tools
- genbenchQC evaluate-classes – QC tool to evaluate sequence characteristics between different classes/labels in the dataset.
- genbenchQC evaluate-splits – QC tool to evaluate data leakage in dataset train-test splits.
General Features
- Class-level QC – Compare multiple classes for feature similarity or bias.
- Train–test split QC – Detect potential data leakage through sequence similarity and clustering.
- Multiple input formats – Supports FASTA, CSV, and TSV datasets.
- Customizable reporting – Generate JSON, HTML, or simple text summaries.
- Integration-ready – Available as both CLI tools and a Python API.
- Flexible sequence handling – Works with single or multiple sequence columns.
Installation
Install Genomic Benchmarks QC using pip:
pip install genbenchQC
If you plan to use evaluate-splits, install mmseqs2:
conda install -c conda-forge -c bioconda mmseqs2
Quick Start
Clone the repository to access example datasets:
git clone https://github.com/katarinagresova/GenBenchQC.git
cd GenBenchQC
Evaluate Classes
Running from CLI with fasta file:
genbenchQC evaluate-classes \
--input example_datasets/G4_positives.fasta \
--input example_datasets/G4_negatives.fasta \
--format fasta \
--out-folder example_outputs/G4_dataset
Outputs with their description are in example_outputs/G4_dataset.
Running from CLI with tsv file and two sequence columns:
genbenchQC evaluate-classes \
--input example_datasets/miRNA_mRNA_pairs_dataset.tsv \
--format tsv \
--out-folder example_outputs/miRNA_mRNA_dataset \
--sequence-column gene \
--sequence-column noncodingRNA
Note: when you want to provide multiple values for some option, such as --input or --sequence-column, prefix each value with option name:
genbenchQC evaluate-classes \
--input example_datasets/G4_positives.fasta \
--input example_datasets/G4_negatives.fasta
Outputs with their description are in example_outputs/miRNA_mRNA_dataset.
Evaluate Splits
genbenchQC evaluate-splits \
--train-input example_datasets/enhancers_train.csv \
--test-input example_datasets/enhancers_test.csv \
--format csv \
--sequence-column sequence \
--out-folder example_outputs/enhancers_dataset
Outputs with their description are in example_outputs/enhancers_dataset.
Supported input file formats
You can choose to run the tools while having different dataset formats:
- FASTA: The input is a FASTA file / list of FASTA files. For evaluate-classes each fasta file is treated as separate class/label.
- CSV/TSV: The input is a CSV/TSV file, and you provide the name of the column containing sequences. You can have either:
- multiple files, each one containing sequences from one class (similar as with FASTA input)
- one file containing sequences from multiple classes. In this case, when running evaluate-classes tool, you need to provide the name of the column containing class labels so the tool can split the dataset into parts. The label classes can then be inferred, or you can specify their list by yourself. The dataset will then be split into pieces containing sequences with corresponding labels and analysis will be performed similarly as with multiple files.
- CSV.GZ/TSV.GZ: Functionality is the same as CSV/TSV files
When having CSV/TSV/CSV.GZ/TSV.GZ input, you can also decide to provide multiple sequence columns to analyze. In this case, the tool evaluate-classes will be performed for each column separately and lastly for sequences made by concatenating sequences throughout all the columns. evaluate-splits tool will run only the concatenated sequences.
Contributions & Support
Contributions and suggestions for new features are welcome, as are bug reports! Please create a new issue for any of these, including example reports where possible. Pull-requests for fixes and additions are very welcome. Please see the contributing notes for more information about how the process works.
License
Genomic Benchmarks QC is MIT-style licensed, as found in the LICENSE file.
Metadata
Release files for genbenchQC 1.2.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 | |
|---|---|---|---|---|
| genbenchqc-1.2.0.tar.gz | 96.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| genbenchqc-1.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 197.4 kB
Release files / genbenchqc-1.2.0.tar.gz
| Download URL | genbenchqc-1.2.0.tar.gz |
|---|---|
| Size | 96.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
89cd0a9cdc6b36b7ec96a97579aebca5ecea4f87552be3e3410cd45359ac5ee1
|
|
BLAKE2b-256 checksum How to use checksums |
faf77e1d9beb4496fd439f3cafba279abd51c1016cc9922dc9caaaa70ba3e888
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.6
|
Release files / genbenchqc-1.2.0-py3-none-any.whl
| Download URL | genbenchqc-1.2.0-py3-none-any.whl |
|---|---|
| Size | 100.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0513dab3c6df8f31ef7b174d6338de5496c7ff116c75fd82164663893e438b3c
|
|
BLAKE2b-256 checksum How to use checksums |
ea4167b64218924dfa52898b0d012d3353c9e3469fda089a4acfc6fc62719243
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.6
|
Security for genbenchQC 1.2.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.