Skip to content

About

Annotates NGS variants via the GeneBe API, merges them with QIAGEN CLC Genomics Workbench exports and flags them with a rule-based filter. Tkinter GUI. Research use only.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

molpath-variant-annotator

Annotates NGS variants with data from the GeneBe API, merges the result with the variant table exported from the QIAGEN CLC Genomics Workbench and labels the variants for review with a rule-based filter. Python with a Tkinter GUI.

Status: alpha (0.1.0). This is an unfinished personal research prototype. It is not a medical device and has not been validated for diagnostic use. No maintenance or support is promised. See Known limitations.

Research use only. GeneBe may be used only for research and educational, non-commercial purposes, not for clinical or diagnostic use. These terms apply to everyone who runs this tool with a GeneBe account; see GeneBe.

What it does

  1. GeneBe query (GeneBeAbfrage.py): reads a VCF file (.vcf or .vcf.gz), splits lines with several alternate alleles into one variant per allele, detects the genome build (hg19 or hg38) from the header and sends the variants to the GeneBe API. It writes an Excel file with gene, HGVS, effect, ACMG classification, criteria and score, ClinVar, population frequencies and more. Where possible, each variant is reported on its MANE transcript; see Output fields.
  2. Merge (Merge_GeneBe_CLC.py): joins the GeneBe result with the Excel export of the CLC variant table by chromosome, position and alleles. VCF deletions and insertions are converted to CLC notation first. The log shows how many variants matched and lists unmatched ones; the column _Matched stays in the output.
  3. Variant filter (VariantenFilter.py): writes a label into the new column filtering and never deletes a row. It also puts copies of 24 key columns (suffix _r) at the front, adds an empty report column for your own notes and turns on the Excel AutoFilter.

The GUI (Annotation_GUI.py) runs steps 1 and 2 together and step 3 on its own. The user interface and the log messages are in German.

The GUI with example file paths

The ACMG classification comes from GeneBe. This tool does not classify variants itself.

Filter rules

The first matching rule wins. Labels starting with 1_ mean "review", labels starting with 0_ mean "probably not relevant". Rows that match no rule stay empty.

# Condition Label
1 EGFR, type "Deletion", protein position between 700 and 900 in hgvs_p 1_egfr_deletion_700_900
2 EGFR p.Leu858Arg, p.Leu861Gln, p.Ser768Ile, p.Thr790Met or p.Gly719… 1_EGFR_hotspots
3 ERBB2, protein position between 700 and 800 in hgvs_p 1_ERBB2_hotspot
4 HRAS, KRAS or NRAS p.Gly13…, p.Gln61… or p.Ala146… 1_RAS_hotspot
5 ACMG pathogenic or likely pathogenic 1_pathogenic_likely_pathogenic
6 ACMG uncertain significance 1_VUS
7 Gene MUC16 0_Wahrscheinlich_MUC_Artefakt (probably a MUC16 artefact)
8 CLC column "Reference allele" is "Yes" 0_reference
9 ACMG benign or likely benign 0_benign_likely_benign

The filter needs the merged file from step 2: gene_symbol, hgvs_p and ACMG_classification from GeneBe, Type and Reference allele from the CLC export.

The rules were written for one laboratory's panel and workflow. Check and adapt them before you use the filter.

Output fields

GeneBe's main query returns the effects on all transcripts (consequences) and the ACMG results per gene and transcript (acmg_by_gene). The first entry of acmg_by_gene is always the transcript with the most disruptive effect. That is often the MANE transcript, but not always. The tool therefore picks the MANE Select transcript from consequences (RefSeq NM_ preferred, otherwise Ensembl ENST):

  • Same transcript: the ACMG result of the main query is used.
  • Different transcript: the tool sends an extra query to the GeneBe API for the MANE transcript (extra_raw).
  • No MANE transcript: MANE_transcript gets a placeholder, and all fields come from the transcript with the most disruptive effect.

Fields that GeneBe returns per variant (variants[]: population frequencies, ClinVar, computational predictions and scores) describe the variant, not a transcript, so they do not depend on this choice. The table shows which fields follow the MANE transcript.

Field Follows MANE? Extra query? Source if MANE ≠ most disruptive transcript
ACMG_classification yes yes extra_raw (extra query)
ACMG_criteria yes yes extra_raw (extra query)
ACMG_score yes yes extra_raw (extra query)
gene_symbol, effect, hgvs_c, hgvs_p, exon yes no main query, MANE entry from consequences
MANE_transcript yes no main query or placeholder
transcript_most_disruptive_effect no no main query, acmg_by_gene[0]
computational_score_selected etc. no no main query
clinvar_classification etc. no no main query
frequency_…, gnomad_…, dbsnp no no main query
full_json yes yes extra_raw (extra query)

Requirements

  • Python 3.10 or newer with Tkinter (on Linux, for example, the package python3-tk)
  • A GeneBe account with an API key: https://genebe.net
  • The Python packages in requirements.txt
  • Input: a VCF file and the Excel export of the variant table from the QIAGEN CLC Genomics Workbench. The merge and the filter expect the column names of that export (for example Chromosome, Region, Type, Reference allele).

Setup and use

python -m venv venv
# Windows: venv\Scripts\activate    Linux/macOS: source venv/bin/activate
pip install -r requirements.txt
python Annotation_GUI.py

In the GUI:

  • VCF-Datei: the VCF file.
  • GeneBe-Ausgabe: where to save the GeneBe result (.xlsx).
  • CLC-Exceltabelle: the Excel export of the CLC variant table.
  • Merge-GeneBe-CLC-Ausgabe: where to save the merged result (.xlsx).
  • GeneBe Username / GeneBe API-Key: your GeneBe account. When you change them, the GUI saves them as plain text in a .env file next to the scripts. You can also copy .env.example to .env and fill it in. .env is listed in .gitignore; never commit it.
  • GeneBe Abfrage starten runs steps 1 and 2; Abbrechen stops the run.
  • Filterhilfe: choose the merged file as Eingabe (Excel) and an Ausgabe file, then click Sortieren.

Steps 1 and 2 also run from the command line:

python GeneBeAbfrage.py --vcf sample.vcf --output genebe.xlsx --username USER --api_key KEY
python Merge_GeneBe_CLC.py --genebe genebe.xlsx --clc clc_export.xlsx --output merged.xlsx

On the command line the API key ends up in your shell history. The GUI avoids that.

GeneBe

GeneBe is an independent service. This project is not affiliated with GeneBe.

  • Terms: according to genebe.net (December 2026), the service is for research and educational, non-commercial use only and not for clinical or diagnostic use; using its data for AI modelling is prohibited. Read the current terms before you use the tool.
  • Own account: everyone needs their own GeneBe account and API key.
  • Data protection: the tool sends the variants (chromosome, position, reference and alternate allele; for the extra query also transcript and gene) and the genome build to genebe.net. According to the GeneBe documentation, processing takes place in the EU and queries are counted but not stored. Before you send variants from patient samples, check with your data protection officer whether this is allowed.
  • Checking a variant on genebe.net: search by position (for example 11-533911-C-A) and then select the transcript you want. During development, a search by transcript notation (ENST…:n.…) once led to a different genomic position.
  • Citation: if you use results in a publication, cite GeneBe: Stawiński P, Płoski R. Genebe.net: Implementation and validation of an automatic ACMG variant pathogenicity criteria assignment. Clin Genet. 2024;106(2):119–126. https://doi.org/10.1111/cge.14516

Known limitations

  • The filter rules are specific to one laboratory; see Filter rules.
  • hg19 input: GeneBe annotates on hg38. For hg19 queries it first lifts each variant over to hg38, so transcript, effect, ACMG result and frequencies are based on hg38. In difficult regions the liftover can place a variant wrongly or fail. If possible, work with hg38 data (VCF and CLC export).
  • Multi-allelic VCF lines: the split alleles are not trimmed to their minimal form. Simple deletions and insertions are converted correctly, but for REF TC, ALT T,TA the second allele stays TC>TA. That is the same variant as C>A one position further on, which is how CLC lists it. The merge does not find such variants: the CLC row gets no GeneBe data, _Matched is False and the log lists the row. Check unmatched rows by hand.
  • Built for VCF files and Excel exports from the QIAGEN CLC Genomics Workbench; other sources have not been tested.
  • User interface and log messages in German.
  • Developed on Windows; other platforms have not been tested.
  • No automated tests.

Disclaimer

This software is provided "as is", without any warranty (see LICENSE). It is not a medical device under the EU In Vitro Diagnostic Medical Devices Regulation (IVDR), it has not been validated, and it must not be used for diagnostics or patient care. Anyone who uses it is responsible for validating it and for complying with data protection law.

QIAGEN CLC Genomics Workbench is a product of QIAGEN. This project is not affiliated with QIAGEN.

Maintenance

This project is not maintained. Issues and pull requests are not monitored. You are welcome to fork it and develop it further under the MIT license.

License

MIT, see LICENSE.

About

Annotates NGS variants via the GeneBe API, merges them with QIAGEN CLC Genomics Workbench exports and flags them with a rule-based filter. Tkinter GUI. Research use only.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages