Overview
Curated: · Written: · Reviewed:
Biological Databases & Ontologies
In one line
Each repository is the authority for one question: GenBank for the sequence as submitted, Ensembl for gene models on a named assembly and release, UniProt for protein function, and GO for term meaning and graph structure. Reach for them to join records on stable identifiers, and keep the release, assembly and evidence so a result can be reproduced after the source has changed.
Key definitions
- Accession: the stable identifier of an entity within a namespace, e.g.
NC_000001,P04637. - Version: a particular state of that entity, e.g.
NC_000001.10toNC_000001.11. Store it with the accession. - Namespace + accession: the join key. The symbol is a display attribute.
- True-path rule: an annotation to term T implies annotations to its ancestors reachable only by
is_aandpart_of. - Evidence code: how an assertion was supported (EXP family versus IEA). It is not a quality rank.
- Obsolete term: a retired GO ID. Read its replacement or consider metadata; never delete it from history.
- Synonym scope: exact, broad, narrow or related. Only exact supports identity.
Formulas and complexity
Worked example (hypothetical corpus of 10,000 gene products): A annotates 5,000, so IC(A) = 1 bit. B annotates 250, so IC(B) = log2(40), about 5.32 bits. Both are common ancestors, so the Resnik similarity is 5.32 bits, taken from B. Ancestor closure is computed once per release and joined on term, not traversed per query.
How it works
- Every row is a claim: subject identifier in a namespace, predicate, object, and provenance (evidence, reference, assigned_by, release, license).
- Store namespace, accession and version. Attach labels as attributes, and keep the symbol as it appeared at the source.
- Traverse only
is_aandpart_of, with a visited set, because GO is a DAG and a term with two parents is reachable twice. - Compute the ancestor closure once per pinned release and join against it.
When to use and when not to
| Situation | Use | Avoid |
|---|---|---|
| Fixed list such as a codon table or platform picklist | Controlled vocabulary with validation | Reasoner and OWL, which add latency and buy nothing |
| Enrichment over a gene set | GO with true-path propagation, pinned release | Enrichment on a set of one gene |
| Retrieval recall | Broad synonyms, ranked below exact matches | Broad synonyms as equal replacements |
| Cross-ontology link | xref with its mapping predicate | owl:sameAs for anything but governed exact matches |
| Mechanistic claim | EXP family evidence | IEA alone, reported as experimental |
Traps interviewers probe
- Overwriting curated values. A nightly upsert erases the earlier value and its source. Fix: keep an append-only raw store and key curated rows by release, with the source value retained.
- Joining on symbols. Symbols are renamed, reused and aliased to other genes. Fix: join on the HGNC ID, keep the approved symbol as an attribute, and assert the match is unique.
- Coordinates without an assembly.
1,chr1andNC_000001.11name the same chromosome, and GRCh37 and GRCh38 differ. Fix: normalise to the RefSeq accession plus assembly, and count liftover failures instead of hiding them. - Treating
regulatesasis_a, or IEA as experimental. Regulating a process does not make the gene involved in it. Fix: propagate onlyis_aandpart_of, filter on the EXP family for mechanistic claims, and report the evidence-code distribution of every hit set.
Interview tips
Opening: name the link you are guarding. For example: 'Each record is a claim with a namespace, accession, version, relation, term, evidence, release and license. I join on namespace plus accession, never on symbol, and I pin the release.'
Expected follow-ups:
- How do you handle an obsolete GO term? Keep its ID and release, follow an unambiguous replacement automatically, and route one-to-many cases to review.
- Why does the enrichment p-value look too small? Ancestors were counted once per path instead of once per term.
- How do you reproduce a figure from last quarter? Use a checksummed bulk snapshot pinned to the release and assembly, not the live API.
- Can you publish derived data? Only if every upstream license permits it; propagate restrictions to derived releases.
30-second outline: (1) Name the repositories and what each is authoritative for. (2) State the key: namespace, accession, version, with HGNC ID for genes. (3) Describe the traversal: is_a and part_of only, visited set, pinned release. (4) Say how you would reproduce the result: release, assembly, checksum, evidence codes kept.
Feedback on this overview
Log in free to save your progress and keep bookmarks and notes for a quick revision before your interview.