Skip to content
Tech Interview Prep
Technical interview guide

Biological Databases & Ontologies

The major public repositories a computational biologist works against daily (NCBI/GenBank, Ensembl, UniProt, and Gene Ontology) what each holds and how they cross-reference each other.

Minutes to read
4
Practice MCQs
25
Interview Q&A
25
Edition
v4
Editorial status
Reviewed

Scope: Current NCBI E-utilities and data policies; Ensembl release 116; UniProt, RCSB PDB, Gene Ontology, OBO Foundry, Sequence Ontology, HGNC, Identifiers.org and OLS guidance reviewed 2026-09-04.

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.10 to NC_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_a and part_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

IC(a)=−log⁡2p(a)IC(a) = -\log_2 p(a) simResnik(t1,t2)=max⁡a∈CA(t1,t2)IC(a)\mathrm{sim}_{\text{Resnik}}(t_1, t_2) = \max_{a \in CA(t_1, t_2)} IC(a)

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

  1. Every row is a claim: subject identifier in a namespace, predicate, object, and provenance (evidence, reference, assigned_by, release, license).
  2. Store namespace, accession and version. Attach labels as attributes, and keep the symbol as it appeared at the source.
  3. Traverse only is_a and part_of, with a visited set, because GO is a DAG and a term with two parents is reachable twice.
  4. Compute the ancestor closure once per pinned release and join against it.
Raw submission, append-only Curated row keyed by accession and version Ontology term, pinned release Evidence code, reference, assigned_by Source release and license

When to use and when not to

SituationUseAvoid
Fixed list such as a codon table or platform picklistControlled vocabulary with validationReasoner and OWL, which add latency and buy nothing
Enrichment over a gene setGO with true-path propagation, pinned releaseEnrichment on a set of one gene
Retrieval recallBroad synonyms, ranked below exact matchesBroad synonyms as equal replacements
Cross-ontology linkxref with its mapping predicateowl:sameAs for anything but governed exact matches
Mechanistic claimEXP family evidenceIEA alone, reported as experimental

Traps interviewers probe

  1. 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.
  2. 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.
  3. Coordinates without an assembly. 1, chr1 and NC_000001.11 name the same chromosome, and GRCh37 and GRCh38 differ. Fix: normalise to the RefSeq accession plus assembly, and count liftover failures instead of hiding them.
  4. Treating regulates as is_a, or IEA as experimental. Regulating a process does not make the gene involved in it. Fix: propagate only is_a and part_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.