# Planetary-Scale Protein Function Catalog — Release `v9.1`

- **Release IRI:** `https://bio2vec.net/planetary-scale-functions/release/v9.1`
- **Portal:** `https://bio2vec.net/planetary-scale-functions/`
- **Bulk download root:** `https://bio2vec.net/data/planetary-scale-functions/v9.1/`
- **Release date:** `2026-12-01`
- **Gene Ontology version:** `releases/2025-10-10`
- **Data, RDF, vocabulary, and metadata licence:** [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **Portal and build software licence:** [BSD 3-Clause](https://opensource.org/license/bsd-3-clause) (Copyright King Abdullah University of Science and Technology)

---

## 1. Catalog Scope and How Counts Were Made

All counts in this release are computed directly from the packaged tables during the deterministic release build:

- **Underlying genomic catalog:** **476,337** prokaryotic genomes across five sources (GTDB r232, SPIRE, AllTheBacteria stratified sample, MGnify, and Empty Quarter) encoding **55,044,850** protein families (**1,386,278,720** genes).
- **Function-prediction layer (`v9.1`):** **29,795** genomes (GTDB complete bacterial and archaeal genomes >=99% complete and <=1% contamination, 500 high-quality GTDB MAGs, and all **14,435** Empty Quarter cultures and desert MAGs) and **1,767,314** protein families (the 1.5 million most abundant families in those genomes, plus **350,000** unannotated families with predicted 3D structures, plus families in predicted protein complexes).
- **Specific high-confidence calls:** **746,697** protein families carry at least one specific Gene Ontology prediction (information accretion IA >= 2.0, calibrated probability >= 0.50), including **77,654** of the unannotated families with a predicted 3D structure.
- **Note on borderline counts:** Displayed probabilities and counts are recomputed from stored values at >= 0.002 and can be slightly lower than in the upstream release notes for calls near 0.50.

---

## 2. Tabular Downloads (`.tsv.gz`)

All tabular files are UTF-8, tab-separated (`\t`), gzip-compressed text files with a single header row, no quoting escapes, and an empty string (`""`) for missing values. Controlled categorical fields use plain documented labels alongside a `*_code` traceability column where needed.

Complete column definitions, data types, units, allowed values, and foreign-key join specifications are provided in:
- Machine-readable W3C CSV on the Web metadata: `metadata/csv-metadata.json`
- Human-readable data dictionary: `metadata/data_dictionary.md` (also at `https://bio2vec.net/planetary-scale-functions/data-dictionary`)

| File | Rows | Description |
|---|---:|---|
| `tsv/genomes.tsv.gz` | 476,337 | Full prokaryotic genome catalog (all genomes) |
| `tsv/families_catalog.tsv.gz` | 55,044,850 | Full protein family catalog (all ~55M families) |
| `tsv/families_predicted.tsv.gz` | 1,767,314 | Protein families with function predictions and evidence summaries |
| `tsv/predictions.tsv.gz` | 29,751,426 | Gene Ontology function predictions (prob_after >= 0.20) |
| `tsv/rescues.tsv.gz` | 512,123 | Predictions lifted by ontology- and genome-level reasoning |
| `tsv/suppressions.tsv.gz` | 10,548 | Predictions suppressed by taxonomic or biophysical constraints |
| `tsv/go_terms.tsv.gz` | 39,354 | Gene Ontology classes and catalog counts |
| `tsv/calibration_bins.tsv.gz` | 486 | Held-out benchmark calibration reliability bins |
| `tsv/operon_pairs.tsv.gz` | 1,595,615 | Conserved operon partner pairs |
| `tsv/boltz_complexes.tsv.gz` | 9,957 | Predicted two-protein complexes (Boltz-2) |
| `tsv/hgt_events.tsv.gz` | 2,606 | Phylogenetic horizontal gene transfer events |

### How the Tables Join

- `families_predicted.tsv.gz.family_id` -> `families_catalog.tsv.gz.family_id` (1:1 enrichment of predicted families within the full catalog)
- `predictions.tsv.gz.family_id` -> `families_predicted.tsv.gz.family_id` (many:1)
- `predictions.tsv.gz.go_id` -> `go_terms.tsv.gz.go_id` (many:1)
- `rescues.tsv.gz.(family_id, go_id)` and `suppressions.tsv.gz.(family_id, go_id)` -> `families_predicted.tsv.gz.family_id` & `go_terms.tsv.gz.go_id`
- `operon_pairs.tsv.gz.(family_a, family_b)` and `boltz_complexes.tsv.gz.(family_a, family_b)` -> `families_predicted.tsv.gz.family_id`
- `hgt_events.tsv.gz.recipient_genome` -> `genomes.tsv.gz.genome_id`

Example: join specific high-confidence predictions (`prob_after >= 0.50`, `IA >= 2.0`) for Empty Quarter families with GO names in Python:

```python
import csv, gzip

go_info = {}
with gzip.open("tsv/go_terms.tsv.gz", "rt", encoding="utf-8") as fh:
    for r in csv.DictReader(fh, delimiter="\t"):
        if float(r["information_accretion"] or 0) >= 2.0:
            go_info[r["go_id"]] = (r["name"], r["aspect"], float(r["information_accretion"]))

eq_fams = set()
with gzip.open("tsv/families_predicted.tsv.gz", "rt", encoding="utf-8") as fh:
    for r in csv.DictReader(fh, delimiter="\t"):
        if int(r["n_empty_quarter_genomes"] or 0) > 0:
            eq_fams.add(r["family_id"])

with gzip.open("tsv/predictions.tsv.gz", "rt", encoding="utf-8") as fh:
    for r in csv.DictReader(fh, delimiter="\t"):
        if r["family_id"] in eq_fams and float(r["prob_after"]) >= 0.50 and r["go_id"] in go_info:
            name, aspect, ia = go_info[r["go_id"]]
            print(r["family_id"], r["go_id"], name, aspect, r["prob_after"])
```

---

## 3. RDF Dumps (`.nt.gz`) and Worked SPARQL Examples

Each named graph is distributed as a gzip-compressed N-Triples file under `rdf/` and documented in `metadata/void.ttl` (`https://bio2vec.net/planetary-scale-functions/.well-known/void`).

| File | Named Graph IRI | Triples | Contents |
|---|---|---:|---|
| `rdf/vocab.nt.gz` | `https://bio2vec.net/planetary-scale-functions/graph/v9.1/vocab` | 387 | OWL vocabulary (`psf:` classes and properties) |
| `rdf/metadata.nt.gz` | `https://bio2vec.net/planetary-scale-functions/graph/v9.1/metadata` | 217 | VoID, DCAT 3, and PROV-O release metadata |
| `rdf/go.nt.gz` | `https://bio2vec.net/planetary-scale-functions/graph/v9.1/go` | 469,738 | All non-obsolete Gene Ontology classes, definitions, IA weights, and hierarchy edges |
| `rdf/genomes.nt.gz` | `https://bio2vec.net/planetary-scale-functions/graph/v9.1/genomes` | 7,332,307 | All prokaryotic genomes in the full catalog (with source, taxonomy, habitat, quality, and prediction status) |
| `rdf/families.nt.gz` | `https://bio2vec.net/planetary-scale-functions/graph/v9.1/families` | 55,455,997 | Protein families in the function-prediction layer with source counts and evidence summaries |
| `rdf/evidence.nt.gz` | `https://bio2vec.net/planetary-scale-functions/graph/v9.1/evidence` | 9,709,159 | Reasoning suppressions, conserved operon pairs, predicted protein complexes, and HGT events |
| `rdf/predictions.nt.gz` | `https://bio2vec.net/planetary-scale-functions/graph/v9.1/predictions` | 310,877,324 | All non-root Gene Ontology function predictions at probability >= 0.20 with evidence and reasoning provenance |
| `rdf/direct_functions.nt.gz` | `https://bio2vec.net/planetary-scale-functions/graph/v9.1/direct_functions` | 9,013,462 | Direct shortcut triples (`family psf:hasFunction goTerm`) for predictions at probability >= 0.50 |
| `rdf/genome_families.nt.gz` | `https://bio2vec.net/planetary-scale-functions/graph/v9.1/genome_families` | 86,421,673 | Genome-to-protein-family encoding links (`genome psf:encodesFamily family`) |

### Worked SPARQL Examples (Endpoint: `https://bio2vec.net/planetary-scale-functions/sparql`)

#### Example 1 — Protein families occurring in Empty Quarter desert genomes with specific predicted functions

```sparql
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX dcterms: <http://purl.org/dc/terms/>
PREFIX psf: <https://bio2vec.net/planetary-scale-functions/vocab#>

SELECT ?family_id ?eq_genomes ?go_id ?go_name ?prob_after
WHERE {
  ?fam a psf:ProteinFamily ;
       psf:sourceDb "empty_quarter" ;
       psf:familyId ?family_id ;
       psf:eqGenomeCount ?eq_genomes ;
       psf:hasFunction ?go .
  ?pred psf:hasFamily ?fam ;
        psf:hasGoTerm ?go ;
        psf:probAfter ?prob_after .
  ?go dcterms:identifier ?go_id ;
      rdfs:label ?go_name ;
      psf:informationAccretion ?ia .
  FILTER(?ia >= 2.0 && ?prob_after >= 0.50)
}
ORDER BY DESC(?eq_genomes) DESC(?prob_after)
LIMIT 25
```

#### Example 2 — Count genomes across all five catalog sources by function-prediction coverage

```sparql
PREFIX psf: <https://bio2vec.net/planetary-scale-functions/vocab#>

SELECT ?source ?has_predictions (COUNT(?g) AS ?n_genomes)
WHERE {
  ?g a psf:Genome ;
     psf:sourceDb ?source ;
     psf:hasFunctionPredictions ?has_predictions .
}
GROUP BY ?source ?has_predictions
ORDER BY DESC(?n_genomes)
```

#### Example 3 — Unannotated families with predicted 3D structures lifted by conserved operon context

```sparql
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX dcterms: <http://purl.org/dc/terms/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX psf: <https://bio2vec.net/planetary-scale-functions/vocab#>

SELECT ?family_id ?go_id ?go_name ?prob_before ?prob_after ?n_lifted
WHERE {
  ?fam psf:isDark350k "true"^^xsd:boolean ;
       psf:familyId ?family_id .
  ?pred psf:hasFamily ?fam ;
        psf:hasGoTerm ?go ;
        psf:probBefore ?prob_before ;
        psf:probAfter ?prob_after ;
        psf:reasoningRule ?rule ;
        psf:genomesLiftedCount ?n_lifted .
  FILTER(CONTAINS(?rule, "G3_SpaceDust") && ?n_lifted >= 3)
  ?go dcterms:identifier ?go_id ;
      rdfs:label ?go_name ;
      psf:informationAccretion ?ia .
  FILTER(?ia >= 2.0)
}
ORDER BY DESC(?n_lifted) DESC(?prob_after)
LIMIT 25
```

---

## 4. Checksum Verification

Verify all downloaded files with SHA-256:

```bash
sha256sum -c CHECKSUMS.sha256
```

---

## 5. How to Cite and Licence

> Bio-Ontology Research Group (BORG), King Abdullah University of Science and Technology. *Planetary-Scale Protein Function Catalog (Release v9.1)*. https://bio2vec.net/planetary-scale-functions/release/v9.1 (accessed 2026-12-01). Gene Ontology version: releases/2025-10-10.

- **Data, RDF dumps, vocabulary, and metadata:** Creative Commons Attribution 4.0 International (CC BY 4.0, https://creativecommons.org/licenses/by/4.0/).
- **Portal and build pipeline code:** BSD 3-Clause (https://opensource.org/license/bsd-3-clause), Copyright (c) 2026 King Abdullah University of Science and Technology.
