SantiagoSanchezF's picture
Add negative genome pool v2 (SanntiS 1.2.0)
ccabc06 verified
|
Raw History Blame Contribute Delete
10.4 kB
metadata
license:
  - cc-by-4.0
  - cc-by-sa-4.0
pretty_name: SanntiS training data
tags:
  - biology
  - genomics
  - biosynthetic-gene-clusters
  - secondary-metabolism
  - interproscan
  - mibig
size_categories:
  - 1K<n<10K

SanntiS training data

The data the SanntiS models are trained on: biosynthetic gene clusters (BGCs) from MIBiG as positives and a pool of BGC-free genome regions as negatives. sanntis train reads both formats directly; see the training documentation.

Layout

Path Tag Content
mibig/5.0rc1-train/ mibig-5.0rc1-train MIBiG 5.0rc1 active + pending entries as a MIBiG-format archive pair (positives of the v1.0.0-beta.1 model)
negatives/v2/ negatives-v2 negative genome pool v2, lineage-matched to the positives (sanntis train --negatives v2; SanntiS 1.2.0)
negatives/v1/ negatives-v1 negative genome pool v1 (sanntis train --negatives v1; SanntiS 1.0 and 1.1)
npclassifier/v1/ npclassifier-v1 NPClassifier API answers for the compounds of mibig/5.0rc1-train (sanntis train --npc-cache v1)

mibig/5.0rc1-train/

File Content
mibig_5.0rc1-train_json.tar.gz the 2,795 MIBiG 5.0rc1 JSON entries, verbatim, one <accession>.json per BGC
mibig_5.0rc1-train_gbk.tar.gz one GenBank record per BGC, <accession>.gbk, every CDS with a /translation: the MIBiG 4.0 GBK when the first locus is unchanged since 4.0 (2,621 entries), otherwise the first 5.0rc1 locus cut from the NCBI nuccore record (174 entries; /pseudo CDS, CDS cut by the slice and repeated CDS locations dropped)
manifest.tsv per BGC: status, GBK source, locus, whether the locus changed since 4.0, length, CDS count, md5 of the sequence and of the proteins
excluded.tsv the 2 entries without a usable record (BGC0003182, BGC0003249)
provenance.json sha256 of the MIBiG 5.0rc1 JSON and 4.0 JSON / GBK archives and of the nuccore records the pair was built from; counts; SanntiS and Biopython versions

MIBiG 5.0rc1 ships JSON only. pending entries were active in MIBiG 4.0 and are under re-review in 5.0; they are included because the model is trained on the validated 4.0 pool plus the new 5.0 entries. sanntis train drops the 18 loci longer than 200 kb, so the model is trained on 2,777 BGCs. The archives are built, deterministically, by the runbook of objective 01 of the sanntisv1-data-and-analysis repository, which also holds the training run and its validation report; manifest.tsv is what a rebuild must reproduce.

negatives/v2/

Genomes selected per lineage in proportion to the CDS of the positives (sanntis plan-negatives: per family, else order, else phylum of the positives; one genome per species; one 250-CDS genome per phylum without positives), with their native BGCs removed and annotated with InterProScan 6.0.3.0 / InterPro 107.0:

Genomes CDS Clean runs Annotated CDS
Prokaryotes: GTDB r226 species representatives (367), BacDive type strains (163), pool v1 genomes (205) 735 3,017,512 116,331 540,087
Fungi: RefSeq assemblies (157), pool v1 genomes (5); nuclear records only 162 1,948,467 18,963 198,024

Prokaryotic genes are called with pyrodigal; fungal CDS come from the RefSeq GenBank (one CDS per gene). Regions detected by antiSMASH 8.0.1 (--minimal) are masked; each genome contributes its planned number of BGC-free CDS (at most 1,500) as three random portions of its BGC-free runs (portions.parquet), which are the only CDS annotated. The longest run of at least 50 CDS of 55 prokaryotic and 15 fungal genomes is a test backbone, kept out of training. Genomes of the species held out for genome-level evaluation and the test-background genomes of the sanntisv1-data-and-analysis repository are excluded (sanntis build-negatives --exclude). The plan and the build are objectives 00 and 01 of that repository, which rebuilds this pool from public accessions.

negatives/v1/

Genomes with their native BGCs removed, annotated with InterProScan 6.0.3.0 / InterPro 107.0:

Genomes CDS Clean runs
Prokaryotes: GTDB r226 species representatives, balanced over phyla (seed 42) 205 530,698 47,819
Eukaryotes: RefSeq fungi and protists (3 per fungal phylum, 2 per protozoan phylum) 23 220,759 7,844

Regions detected by antiSMASH 8.0.1 (--minimal) are masked (native_mask.parquet); the remaining CDS form the BGC-free runs (clean_runs.parquet) that give the training background and the length-matched negative chunks. The longest run of at least 50 CDS of 55 prokaryotic and 15 eukaryotic genomes is reserved as a test backbone (test_backbones.parquet) and kept out of training. cds_tokens.parquet holds the InterPro tokens per CDS and manifest.json the pins, counts, genome-wide annotation coverage and the sha256 of every file, which sanntis train verifies. The pool is rebuilt with sanntis build-negatives; the genome selection and the build are objective 00 of the sanntisv1-data-and-analysis repository.

npclassifier/v1/

The answers of the NPClassifier API (models CLASS v1, PATHWAY v1, SUPERCLASS v1, ontology npclassifier_index_v1) for the 3,842 structure skeletons of the compounds of mibig/5.0rc1-train, one JSON file per canonical SMILES named by its sha1, in the format of $SANNTIS_CACHE/npclassifier. sanntis train --npc-cache v1 seeds its cache with them, so a retraining makes no API request for these compounds and gets the labels the released model was trained with. The answers were collected up to 2026-10-30. NPClassifier: Kim et al., Journal of Natural Products 2021, doi:10.1021/acs.jnatprod.1c00399.

Use

pip install "sanntis[train] @ git+https://github.com/Finn-Lab/SanntiS@v1.0.0-beta.1"
hf download microbiome-informatics/sanntis-training-data --repo-type dataset --include "mibig/5.0rc1-train/*" --local-dir data/
sanntis train --run runs/release --mibig none \
    --external-gbk data/mibig/5.0rc1-train/mibig_5.0rc1-train_gbk.tar.gz \
    --external-json data/mibig/5.0rc1-train/mibig_5.0rc1-train_json.tar.gz \
    --negatives v1 --npc-cache v1 --container-engine docker

--negatives v1 and --npc-cache v1 fetch negatives/v1/ and npclassifier/v1/ at their tags from this dataset.

Licence

Path Licence Why
mibig/ CC BY 4.0 MIBiG entries (CC BY 4.0) and NCBI loci
npclassifier/ CC BY 4.0 NPClassifier API answers for MIBiG compounds
negatives/ CC BY-SA 4.0 negatives/v1/genomes.parquet carries GTDB r226 taxonomy (lineage), which GTDB licenses CC BY-SA 4.0, and both pools draw their prokaryotic genomes from GTDB r226; any adaptation of negatives/ must be shared under the same licence
everything else (this card, NOTICE.md) CC BY 4.0

These terms apply to every revision of this dataset, including the mibig-5.0rc1-train, negatives-v1 and npclassifier-v1 tags, which predate this section and are not moved, and negatives-v2. Copyright 2026 EMBL - European Bioinformatics Institute for this project's contribution; third-party content keeps the terms of its source. No third-party software or model weights are included. Full attribution: NOTICE.md.

Sources

  • MIBiG 5.0rc1 and 4.0, CC BY 4.0: mibig/ and the compounds behind npclassifier/. Zdouc et al., Nucleic Acids Research 2025, doi:10.1093/nar/gkae1115.
  • GTDB r226, CC BY-SA 4.0: selection and taxonomy of the 205 prokaryotic genomes of negatives/v1/, and the species representatives (and CheckM2 quality) among the candidates of negatives/v2/. Parks et al., Nucleic Acids Research 2022, doi:10.1093/nar/gkab776.
  • BacDive, CC BY 4.0: the type strains among the candidates of negatives/v2/.
  • NCBI Taxonomy (taxdump of 2026-07-01): the lineages of negatives/v2/ and of the positives it is matched to.
  • NCBI / INSDC (GenBank, RefSeq, nuccore): the 174 re-cut MIBiG loci, the RefSeq eukaryotic genomes and the assemblies of the negative pools. NCBI places no restriction on these data, though submitters may hold rights (NCBI policies); they are not relicensed here.
  • InterPro 107.0 / InterProScan 6.0.3.0, CC0: the tokens of negatives/. Blum et al., Nucleic Acids Research 2025, doi:10.1093/nar/gkae1082.
  • antiSMASH 8.0.1: the native-BGC masks of negatives/ (outputs only).
  • Pyrodigal: the prokaryotic gene calls of negatives/v2/. Larralde, Journal of Open Source Software 2022, doi:10.21105/joss.04296. Blin et al., Nucleic Acids Research 2025, doi:10.1093/nar/gkaf334.
  • NPClassifier: npclassifier/ (no data licence stated by the service; factual classifications). Kim et al., Journal of Natural Products 2021, doi:10.1021/acs.jnatprod.1c00399.

Please cite SanntiS and the sources above.

@article{sanchez2023sanntis,
  title   = {Expansion of novel biosynthetic gene clusters from diverse environments using SanntiS},
  author  = {Sanchez, Santiago and Rogers, Joel D. and Rogers, Alexander B. and Nassar, Maaly and McEntyre, Johanna
             and Welch, Martin and Hollfelder, Florian and Finn, Robert D.},
  journal = {bioRxiv},
  year    = {2023},
  doi     = {10.1101/2023.05.23.540769}
}

Acknowledgements

This work is part of EUREMAP (European Research Infrastructure for Marine Bioprospecting, https://euremap.eu), funded by the European Union's Horizon Europe research and innovation programme under grant agreement No 101131663 (doi:10.3030/101131663). Views and opinions expressed are however those of the author(s) only and do not necessarily reflect those of the European Union. Neither the European Union nor the granting authority can be held responsible for them.