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.
- 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.
- 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.
Install Genomic Benchmarks QC using pip:
pip install genbenchQCIf you plan to use evaluate-splits, install mmseqs2:
conda install -c conda-forge -c bioconda mmseqs2Clone the repository to access example datasets:
git clone https://github.com/katarinagresova/GenBenchQC.git
cd GenBenchQCRunning 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_datasetOutputs 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 noncodingRNANote: 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.
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_datasetOutputs with their description are in example_outputs/enhancers_dataset.
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 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.
Genomic Benchmarks QC is MIT-style licensed, as found in the LICENSE file.
