Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

⚠️ genbenchQC is now genomic-benchmarks-qc

This 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 use gb-qc where you used genbenchQC. Both subcommands keep their names.

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.

Download files

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

Source Distribution

genbenchqc-1.2.0.tar.gz (96.6 kB view details)

Uploaded Source

Built Distribution

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

genbenchqc-1.2.0-py3-none-any.whl (100.8 kB view details)

Uploaded Python 3

File details

Details for the file genbenchqc-1.2.0.tar.gz.

File metadata

  • Download URL: genbenchqc-1.2.0.tar.gz
  • Upload date:
  • Size: 96.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.6

File hashes

Hashes for genbenchqc-1.2.0.tar.gz
Algorithm Hash digest
SHA256 89cd0a9cdc6b36b7ec96a97579aebca5ecea4f87552be3e3410cd45359ac5ee1
MD5 23e12525d17c23f5282d2902569578ca
BLAKE2b-256 faf77e1d9beb4496fd439f3cafba279abd51c1016cc9922dc9caaaa70ba3e888

See more details on using hashes here.

File details

Details for the file genbenchqc-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: genbenchqc-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 100.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.6

File hashes

Hashes for genbenchqc-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0513dab3c6df8f31ef7b174d6338de5496c7ff116c75fd82164663893e438b3c
MD5 0faccd03782e1231e812f70947072910
BLAKE2b-256 ea4167b64218924dfa52898b0d012d3353c9e3469fda089a4acfc6fc62719243

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.2.0 This release

2 files

1.1.0

1 file

1.0.2

1 file

1.0.1

1 file

1.0.0

1 file

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