lhallee's picture
Publish Swiss-Prot annotation vocabulary 2026_02
045af7c verified
|
Raw
History Blame Contribute Delete
24.3 kB
metadata
pretty_name: Swiss-Prot Annotation Vocabulary 2026_02
license: other
task_categories:
  - feature-extraction
tags:
  - biology
  - protein
  - uniprot
  - annotation-vocabulary
configs:
  - config_name: clusters
    data_files:
      - split: clusters
        path: clusters/cluster_assignments.parquet
  - config_name: excluded
    data_files:
      - split: excluded
        path: terms/excluded_terms.parquet
  - config_name: migration
    data_files:
      - split: migration
        path: migrations/legacy_to_current.parquet
  - config_name: minimal
    data_files:
      - split: train
        path: views/sequence_annotations/train-*.parquet
      - split: validation
        path: views/sequence_annotations/validation-*.parquet
      - split: test
        path: views/sequence_annotations/test-*.parquet
  - config_name: rich
    default: true
    data_files:
      - split: train
        path: data/train-*.parquet
      - split: validation
        path: data/validation-*.parquet
      - split: test
        path: data/test-*.parquet
  - config_name: terms
    data_files:
      - split: terms
        path: terms/term_dictionary.parquet

Swiss-Prot Annotation Vocabulary 2026_02

This release converts a pinned Swiss-Prot snapshot into a versioned protein annotation vocabulary. Stable, namespaced term identifiers are the biological identity. Integer tokens are specific to this vocabulary and grammar version.

Release summary

Field Value
Vocabulary version 2026_02-support10-v1
Grammar version 1
Swiss-Prot release 2026_02
Swiss-Prot release date 2026-06-10
Build date 2026-08-26
Proteins 575,503
Retained terms 66,967
Terms below support threshold 108,484
Local annotation intervals or points 10,259,463
Minimum protein support 10

Load the data

Each table is a named Hugging Face configuration:

from datasets import load_dataset

clusters = load_dataset("Synthyra/SwissProt-Annotation-Vocabulary", "clusters")
excluded = load_dataset("Synthyra/SwissProt-Annotation-Vocabulary", "excluded")
migration = load_dataset("Synthyra/SwissProt-Annotation-Vocabulary", "migration")
minimal = load_dataset("Synthyra/SwissProt-Annotation-Vocabulary", "minimal")
rich = load_dataset("Synthyra/SwissProt-Annotation-Vocabulary", "rich")
terms = load_dataset("Synthyra/SwissProt-Annotation-Vocabulary", "terms")

Pin a Hub commit revision for reproducible downstream work.

Dataset configurations

Configuration Purpose Split paths
clusters Whole-cluster split assignments. clusters: clusters/cluster_assignments.parquet
excluded Observed terms below the configured support threshold. excluded: terms/excluded_terms.parquet
migration Audited legacy raw-token migration outcomes. migration: migrations/legacy_to_current.parquet
minimal Sequence and annotation-token view. train: views/sequence_annotations/train-*.parquet; validation: views/sequence_annotations/validation-*.parquet; test: views/sequence_annotations/test-*.parquet
rich Full protein records and provenance. train: data/train-*.parquet; validation: data/validation-*.parquet; test: data/test-*.parquet
terms Retained token and stable-identifier dictionary. terms: terms/term_dictionary.parquet

Tables and columns

The rich protein table contains the full release record. Its main fields are:

Column Type Meaning
accession string Swiss-Prot primary accession.
sequence string Protein sequence.
vocabulary_version string Version that defines the biological token mapping.
grammar_version string Version of the aspect and identifier ordering rules.
source_releases list[struct] Pinned source-field and release pairs used by this build.
annotations list[int32] Sorted unique union of retained global and local biological tokens.
global_term_ids list[string] Stable namespaced identifiers for global terms.
global_tokens list[int32] Version-specific tokens for the global terms.
global_labels list[list[string]] Source labels for each global term.
global_evidence list[list[string]] Evidence identifiers for each global term.
global_raw_values list[list[string]] Source assertions exposed by the source adapters for each global term.
global_relations list[list[string]] Source relations for each global term.
global_source_references list[list[string]] Source references for each global term.
local_stable_term_ids list[string] Stable identifiers for coordinate-bearing terms.
local_term_ids list[int32] Version-specific local-term tokens.
local_starts, local_ends list[int32] Parallel 1-based inclusive coordinates.
local_feature_types list[string] UniProt feature keys such as ACT_SITE, BINDING, and DOMAIN.
local_evidence list[list[string]] Source evidence identifiers, when supplied.
taxon_id, lineage_taxon_ids int64, list[int64] NCBI taxonomy identifiers.
cluster_id string MMseqs2 cluster identifier.
split string Cluster-disjoint split assignment.

All global_* arrays are parallel at the outer level; each inner provenance list contains the sorted unique values exposed by the source adapters for that term. All local_* arrays are parallel and have equal length within a row. The table also retains local source labels, descriptions, feature identifiers, coordinate modifiers, ligand identifiers, relations, and source references.

Taxonomy is rich protein metadata, not an annotation-vocabulary aspect. taxon_id, lineage_taxon_ids, and lineage_names are retained from the pinned NCBI taxonomy enrichment for stratification and confound control. Taxonomy does not receive biological tokens and is absent from global_term_ids, global_tokens, annotations, the term tables, and migration targets.

InterPro remains in the target vocabulary. Gene3D removal is a measured recipe decision, not a missing parser path: in the completed V1 coverage audit, only 468 of 574,627 Swiss-Prot proteins would lose their sole domain-level annotation when Gene3D was removed and InterPro retained. Raw Gene3D observations are used only for that separately recorded review. Gene3D is absent from global term and token arrays, minimal annotations, retained and excluded term tables, released per-aspect statistics, and migration targets.

The minimal table contains only sequence and annotations. The terms table maps every retained integer token to stable identity, label, description, locality, support, deterministic grammar-key material, observed evidence codes, relations, source references, hierarchy or replacement identifiers when supplied, source-pin fields, vocabulary version, and the primary source-specific release. sort_aspect_rank is the configured aspect-grammar rank. sort_identifier_key is compact JSON containing the remainder of the canonical term sort key: naturalized accession components, case-folded source database, and canonical term ID. Evidence codes, relations, and source references are sorted unique unions over all non-negated observations of the term. source_provenance names the pinned input fields that define or observe the term, while source_release is the primary source-specific release for that aspect.

parent_ids contains direct, canonical, source-prefixed parent term IDs exposed by the selected ontology adapter; a parent need not pass this vocabulary's support threshold. replacement_ids contains only canonical, source-prefixed automatic replacement IDs backed by an explicit source assertion such as Gene Ontology replaced_by. Gene Ontology consider suggestions are excluded from automatic replacements and remain migration manual-review candidates. Either array is empty when no selected source adapter exposes the assertion. The separate migration table is authoritative for old-token translation because multiple historical tokens can resolve to one current term.

Clustering and splits

Sequences were clustered with MMseqs2 eec9c354be4276d2373996af2e50808b1390d527 at 30% sequence identity and 50% alignment coverage. Coverage mode 0 requires the query and target to each meet the threshold. Equivalently, the minimum of query coverage and target coverage must be at least 50%.

Whole clusters were assigned with seed 42 toward 90% train, 5% validation, and 5% test by protein count. A cluster occurs in exactly one split.

Split Target Proteins Actual Clusters
train 90% 517,953 90.00% 53,857
validation 5% 28,775 5.00% 2,993
test 5% 28,775 5.00% 2,993

Vocabulary identity and grammar

Canonical identifiers use av::aspect::source_database::stable_accession. Terms are ordered first by the explicit aspect grammar and then by natural stable-accession order. Biological tokens start at zero. Special tokens are appended after all biological tokens, so they cannot collide with biological token zero.

Terms observed in fewer than 10 distinct Swiss-Prot proteins are excluded from the integer vocabulary. Their measured counts remain in the release artifacts so another threshold can be applied without treating absence as nonexistence.

Aspect Retained terms
cofactor 76
disease 108
ec 2,125
go_bp 9,106
go_cc 1,801
go_mf 4,407
interpro 17,829
keyword 1,084
local_active_site 1
local_binding 1
local_chain 1
local_coiled_coil 1
local_compositional_bias 1
local_crosslink 1
local_disulfide 1
local_dna_binding 1
local_domain 1
local_glycosylation 1
local_helix 1
local_interpro 17,924
local_intramembrane 1
local_lipidation 1
local_modified_residue 1
local_motif 1
local_peptide 1
local_propeptide 1
local_region 1
local_repeat 1
local_signal_peptide 1
local_site 1
local_strand 1
local_topological_domain 1
local_transit_peptide 1
local_transmembrane 1
local_turn 1
local_zinc_finger 1
membrane_orientation 8
membrane_topology 10
pfam 7,659
rhea 4,426
subcellular_location 377

Local annotation coordinates

Local starts and ends are 1-based and inclusive, matching the normalized release convention. For a Python string, use sequence[start - 1:end]. Point features have start == end. Paired features, such as disulfide bonds, use local_pair_members to preserve endpoint membership.

Fuzzy, unknown, or out-of-range source coordinates are not converted into exact spans. Their exclusions and counts belong in the build manifest. A local term reports a source annotation at that position; it does not establish that every residue inside a broad region has the same function.

Migration from older raw tokens

Migration follows four explicit steps: old raw token to the old token dictionary, old label to a stable biological identifier, official replacement or obsolete-term mapping when available, and stable identifier to the new token dictionary. It never assumes that an integer has the same meaning across vocabulary versions.

Each migration row reports one of the API statuses: exact, replaced, current_but_filtered, current_not_observed, ambiguous, obsolete, removed/unmapped, unknown_old_token, or invalid_legacy_label. current_but_filtered means the term is current and observed in this Swiss-Prot release, but measured protein support is below the vocabulary threshold; its canonical candidate is retained with a null token and no automatic token is assigned. current_not_observed means a source-backed current or canonical candidate is absent from this pinned Swiss-Prot release; the candidate is retained with a null token and no automatic token is assigned. ambiguous includes every Gene Ontology consider suggestion, even a single suggestion, and records manual_review_candidates separately. Outcomes other than exact or replaced require review. Legacy token zero is also reported explicitly because the historical Translator vocabulary used zero for both a biological term and padding in different contexts. Callers must state whether input tokens are biological annotations or model-sequence tokens.

Legacy _threed labels retain their parsed Gene3D identity for audit but always report removed/unmapped with exclusion_reason=aspect_excluded_from_target_recipe. They have no candidate, new term, or new token, even if a caller supplies a replacement bridge.

Sources and licenses

This card uses license: other because the release combines records derived from multiple upstream resources. No new license grant is asserted here. Users must follow the terms named by each source and verify them for their intended use.

Source Release URL License Source SHA-256
Gene Ontology Basic releases/2026-07-26 https://purl.obolibrary.org/obo/go/go-basic.obo CC BY 4.0 b08d45b268b8c24ccb2513dbbbc7d4df9f6521c099b413f79eb31e06e0fa3bcc
InterPro protein coordinates 109.0 https://ftp.ebi.ac.uk/pub/databases/interpro/releases/109.0/protein2ipr.dat.gz CC0 1.0 b4f50cb086299854ed1f6a47eea92b72213fd030c88a03a22212646c3d219efe
NCBI Taxonomy retrieved-2026-08-26 https://ftp.ncbi.nlm.nih.gov/pub/taxonomy/taxdump.tar.gz NCBI data usage policy bec88639770804dc166e99b37dacc514de38841be5aee15ee3ad849d6b3b277d
UniProt disease vocabulary 2026_02 https://ftp.uniprot.org/pub/databases/uniprot/current_release/knowledgebase/complete/docs/humdisease.txt CC BY 4.0 bb42e9b1e7a85b1d9867e3996f90e6e3aca6caef4cae904012fdd84bb2ed9e22
UniProt keyword vocabulary 2026_02 https://ftp.uniprot.org/pub/databases/uniprot/current_release/knowledgebase/complete/docs/keywlist.txt CC BY 4.0 090f1b8625ef483db4d010185c1f038084847cd982ae9a9cc1e3edd11304d59d
UniProt subcellular-location vocabulary 2026_02 https://ftp.uniprot.org/pub/databases/uniprot/current_release/knowledgebase/complete/docs/subcell.txt CC BY 4.0 78989ca7bfa17138a537d30817230620cb399e6fdb968effbd44e9f2feaa5257
UniProtKB release metadata 2026_02 https://ftp.uniprot.org/pub/databases/uniprot/current_release/knowledgebase/complete/reldate.txt CC BY 4.0 7ef2a745c849694a02dce241741f02491248424481219d36284cb9fdca198ce1
UniProtKB/Swiss-Prot DAT 2026_02 https://ftp.uniprot.org/pub/databases/uniprot/current_release/knowledgebase/complete/uniprot_sprot.dat.gz CC BY 4.0 741bcb144f98b8d10f0369b145d562b6751bfd17c285e936553aeb9cb54ab592
UniProtKB/Swiss-Prot FASTA 2026_02 https://ftp.uniprot.org/pub/databases/uniprot/current_release/knowledgebase/complete/uniprot_sprot.fasta.gz CC BY 4.0 b774748a050fd3de0bf2ad49b359ed59a2c2b02c89df3fe0679fafa446751794

Artifact integrity

The release manifest fixes artifact paths, byte sizes, row counts where applicable, and SHA-256 digests. Verify the digest after downloading an artifact and pin the exact Hub revision used by an experiment.

Path Rows Bytes SHA-256
.gitattributes 46 30129f61f2a1b984b358279fb24769ff73836dc7f839a765b67775ae2af04a13
clusters/cluster_assignments.parquet 2,189,703 a04da313f28d9a5a148cf0dec8e1920d1c5d98cbe830a93977ca8eb50e7c4e30
clusters/mmseqs_memberships.tsv 8,105,806 bb7d5f36e991ba8be0b3c236f4408d69fca214f65ab27ba7cfabce424730afba
data/test-00000-of-00001.parquet 19,980,440 d2d84c78e1ee737103816cf03757848f8704e65af37ff2d666a247d29c44e8eb
data/train-00000-of-00011.parquet 43,698,534 ce44ee828717dafb94523fd0117f314d490b84a7a0db493e924f154cd96823a8
data/train-00001-of-00011.parquet 40,517,142 b3b2ce9f818a22a437716f44ce0a52c7be1967b52cbf473085a37c319baf06b5
data/train-00002-of-00011.parquet 36,225,780 412b5483e00409684843590368fc9ba12176f9dbf7cdbd4ccb22716e23ce3ad2
data/train-00003-of-00011.parquet 55,083,306 1e8d9e99592f1196457e7b25af94493c142acad8714c2401d69f7ac0d63afa77
data/train-00004-of-00011.parquet 56,681,270 93f178980662be456c4dbcb6ec0b81b4988bd861e9bf05bf8672458311d7669c
data/train-00005-of-00011.parquet 47,541,302 7bb7802cf1acd714526bc4372fe580ed5589f26e9094975d70363423735878ae
data/train-00006-of-00011.parquet 46,209,837 98db8e73bad750ed186adbac6c04a9b52020aa2707bb64ac29015fc1eb50a50f
data/train-00007-of-00011.parquet 53,536,151 0209d51103fe65c8e3f85243c2a1eb7f52097a2845f55a5b07f83ac71da956b1
data/train-00008-of-00011.parquet 50,954,194 c2b2c44f93552335e2bc88de3e69ed886f73092b8e5f6d8add1e196a3952a69a
data/train-00009-of-00011.parquet 59,631,604 b4e751001c359b1e591ad051bb5717e7b162b2c0da6c99d586ed71fa68b61c3d
data/train-00010-of-00011.parquet 22,851,808 a87010c71badea1436dad3fc0f2ef9b389feb8d42f8a0a0c19c75d94fecc44f2
data/validation-00000-of-00001.parquet 20,711,059 336fd02dc61ab46da5e3ca307f084ccecaba97f5852ff19f998bfe01a3e17333
manifests/build.json 175,287 5adb57dd09a878de309c3299dbf1a5636c9e1dfb45af339e62f5e94a63d1c12f
manifests/clustering.json 2,430 1e83b8a07a69cd3079ecfc841aef27f8205e83d0a63181a802f0ce12dacd7e3a
manifests/mmseqs_run_manifest.json 2,404 9c64b27b8f252afb1922b4e6feb405f80edb3337a8b4013b44eda525986cded3
manifests/software.json 15,592 a0f22ae7d3f931ee0596409081bbfda5e5294a72bfe60a1fea4d83ef0e42e1dd
manifests/source_pins.json 3,335 743d4022ce44906d2b33df488a3b183c4062c85bb4526ce70651c826cd3541a3
manifests/sources.json 6,329 aa6aaf5b2406ebda86c5f298c8f04787a4c5028aa98348388758b2ce1c0dd01c
migrations/legacy_release.json 97,903,985 a803561b938b59a5d83ccd0e67a949adae967d29ad6a034327b77a3a15eada61
migrations/legacy_to_current.parquet 3,508,117 d6b76d39d25124027e5dacdf24abb3d5ccd0c9b28e4b3a5af793038fbbd8c9b4
migrations/legacy_vocabulary.json 6,079,624 e2f98fc8d1ce7c12d29a4add3ac093d04834529ea84c1606719bf425f27b5f61
migrations/legacy_vocabulary.parquet 1,097,964 58cd14c2b3b2edac3657e77190d9476b94c86aa4b7f7cd324b0a63e49855e2f7
migrations/replacement_rule_audit.json 1,557 62994c8d1071cd7b1971774edc481c78c87a600de5c42ac9e1c29c8288ee1536
software/requirements-analysis-py312-cu128.lock.txt 3,216 11c3ced98a8d7c16d7884961c8246671b3faebd66e9925029a246fcfbdfd8fe1
software/source_snapshot.tar.gz 214,525 46be750e5f4a41a64ba0a0a7fc7599dedfc131d3dfff0e3f867c997321de694d
terms/excluded_terms.parquet 3,805,978 363eee8f185aa77fcec2ea151f78f1a74a075acf10d6ade448f37421d81b7e5e
terms/term_dictionary.parquet 3,997,855 daa646fa4e7563b4df65ce389483368c1711180864f48b1ccb5a4fe840291e41
views/sequence_annotations/test-00000-of-00001.parquet 4,639,417 ea4dafb9e1e4d34c12712f4ebb46b5dccdb7127e849dd5a0bcc855d721dbf45a
views/sequence_annotations/train-00000-of-00011.parquet 9,756,186 766847e06c1a5680c81d5934c3365b12b98849506858f0ba9a137b32f8f5f19b
views/sequence_annotations/train-00001-of-00011.parquet 9,033,779 d282b9422126cd27ec1a67513bd61600719d64ce88a6d855d041f92ee9fe6f48
views/sequence_annotations/train-00002-of-00011.parquet 7,290,984 6a4b80a822d101c34be189ae1666f03af912412e3c76c80ccc9c6192d3a28cae
views/sequence_annotations/train-00003-of-00011.parquet 10,875,412 db4dcbb8935ee36ba565dc82152fd179c1116babb489db759de49289d242f111
views/sequence_annotations/train-00004-of-00011.parquet 10,204,023 87c10064de051dd75eb751605373c5e224b792f2a7bd2b16befcd105b1220c2a
views/sequence_annotations/train-00005-of-00011.parquet 8,963,883 90c0660c7f2028847dfcf7ab5afdf6e9be603b72413d36ce0a24f00ea946b8bd
views/sequence_annotations/train-00006-of-00011.parquet 9,536,259 cbb2f3b2c64a30c50f5afda5b5392ed5663df50a28912f52a2f628e37fb16051
views/sequence_annotations/train-00007-of-00011.parquet 11,765,154 38bd9f626e93487fcce54d7c29d8e4c27d2f1b4948a64ed037f4b225e4e3e88e
views/sequence_annotations/train-00008-of-00011.parquet 10,864,914 f4100ca144629aea6f79d2bbbed142f4a41cdf92799ee43c39c9610883f9a11f
views/sequence_annotations/train-00009-of-00011.parquet 12,342,961 98135c8422f11b69f02e3a8958745c9dd38741e1d825324d82c3ff4da6e5698c
views/sequence_annotations/train-00010-of-00011.parquet 4,986,846 f2b5b88e9fd4119ae30e70cf6e77a08f0d850547c4e722f4cdb63a491f03a649
views/sequence_annotations/validation-00000-of-00001.parquet 4,704,576 ce980714c60b49cd71ca4baafd12847987f0cf83a4625558efaf87c7b31bfd7d

Caveats

  • Swiss-Prot annotations are curated but incomplete and concentrated in well-studied proteins and taxa.
  • The support filter removes rare terms from integer labels, not from biological reality.
  • Sequence length and annotation count are correlated in Swiss-Prot. Naive pooled association or prediction can exploit annotation density and the number of opportunities for a model feature to activate. Use cluster-disjoint evaluation and control both quantities.
  • Taxonomy can act as a shortcut in predictive models. Evaluate results with taxonomy and sequence length controlled when they can confound the question.
  • MMseqs2 cluster-disjoint splits limit leakage under the stated sequence thresholds. They do not exclude every remote evolutionary, structural, or functional relationship.
  • Database annotations, migration matches, and model associations are evidence-bearing records. They are not experimental confirmation of a protein function or residue mechanism.
  • Rich provenance is lossless for values exposed by the selected source adapters, not necessarily for every raw source line. Biopython's Swiss-Prot parser normalizes keyword fields and does not expose raw keyword ECO blocks. A full scan found no evidence-bearing keyword lines in the pinned 2026_02 DAT; future source releases must repeat this audit.
  • Exact build exclusions, parser decisions, source checksums, and validation results are defined by the pinned manifests, not by mutable upstream URLs.

Citation

Cite the exact Hugging Face commit revision loaded by the experiment and the upstream resources listed in this card.

@dataset{annotation_vocabulary_2026_02,
  author = {Annotation Vocabulary contributors},
  title = {Swiss-Prot Annotation Vocabulary 2026_02},
  year = {2026},
  version = {2026_02-support10-v1},
  publisher = {Hugging Face},
  url = {https://huggingface.co/datasets/Synthyra/SwissProt-Annotation-Vocabulary},
  note = {Pin the immutable Hub commit revision used by the experiment}
}