Visual language
How we draw biology
Shape says kind, colour says identity, line style says certainty. These rules make every new symbol derivable from an archetype and checkable by the validator.
Principles
Shape says kind
Each kind of thing has one silhouette family. A named entity keeps its family’s silhouette.
Colour says identity
One colour family per entity. The drug is magenta; context machinery stays neutral.
Line style says certainty
Solid, dashed and dotted lines carry how well a step is known.
Evidence decides what is drawn
An entity appears only in the places its registry entry lists.
Parts fit without retouching
Shared membrane spacing, origin, light, weights and anchors.
Readable small
A symbol still reads at 24 px tall.
Shape families
Every symbol declares one family. Small molecules are outlined ring glyphs; macromolecules are filled bodies with an outline; membranes are dotted bilayers.
Globular protein
globular· 6 symbols1 to 3 overlapping round lobes with one highlight; lobes stand for domains.
Enzyme
enzyme· 5 symbolsA globular body with a U-shaped active-site pocket; a substrate or inhibitor sits in it.
Single-pass membrane protein
receptor-1tm· 5 symbolsDomain stack on a stalk, one transmembrane bar, a short tail.
Multi-pass membrane protein
multipass· 1 symbolRounded helices crossing the bilayer, joined by loops; 7 for a GPCR.
Channel
channel· 2 symbolsTwo half-barrels around a pore; the pore-lining helices show the gate.
Transporter
transporter· 2 symbolsTwo half-bodies, flush on one face, open on the other (a V).
Peripheral membrane protein
peripheral· 1 symbolA body on the cytoplasmic face, held by visible lipid anchors.
Antibody
antibody· 2 symbolsA Y: two Fab arms (heavy chain inner, light chain outer) and an Fc stem.
Nucleic acid
nucleic-acid· 9 symbolsRibbons: mRNA with a 5′ cap, DNA as a double helix, siRNA as a twisted pair. A gene marks its regulatory element with a grey block and its start with a bent arrow.
Small molecule
small-molecule· 8 symbolsAn outlined ring glyph, 40 units or less, like a simplified structure.
Ion
ion· 3 symbolsA small circle with its charge sign; the label names the ion.
Assembly
assembly· 5 symbolsRepeated parts built into one body.
Modifier
modifier· 2 symbolsA badge or short chain, 28 units or less, attached to a host anchor.
Organelle
organelle· 10 symbolsA bilayer ring or band at fixed size with its lumen filled; never scaled.
Construction
Every master is drawn in figure units (1 unit = 1 px at 100% scene scale) around an origin that is also its attach point.
| Membrane constant | Units | Meaning |
|---|---|---|
| Head-group dot | 4.2 | Diameter of each dot |
| Dot pitch | 6.2 | Centre to centre along the membrane |
| Row offset | ±5.5 | Each row of dots from the mid-plane |
| Bilayer edge | ±7.6 | Outer edge of the dots |
| Transmembrane parts | past ±9 | So they visibly cross the bilayer |
| Peripheral parts | ≤ +5.5 | Reach the inner leaflet from the cytosol |
- The origin is the attach point: the membrane mid-plane for anything in or on a membrane, the visual centre otherwise.
- Bilayers are two rows of head-group dots; every membrane symbol uses the constants above, so parts line up without retouching.
- One light from the upper left: at most one highlight per filled body, in its family’s light token. No gradients, shadows or glows.
- Round joins and caps everywhere; sharp corners only at chemical ring vertices.
Line weights
In figure units, shown at 2×.
- Hair0.9 · linkers, rungs
- Detail1.1 · small beads, signs
- Outline1.3 · globular bodies
- Bold1.8 · large particles
- Stalk2.2 · stalks, tails, loops
- Transmembrane3.0 · single TM segment
- Strand3.3 · siRNA strands
- Ribbon5.0 · mRNA ribbon
Colour roles
Kit
Archetype bodies; neutral until specialised
kitkit-lightkit-dark
Kit partner
Ligands, metabolites, ions
kit-2kit-2-lightkit-2-darkkit-2-tint
Drug
The figure’s drug, and nothing else
drugdrug-2drug-rungdrug-light
Phosphate
Badges and nucleotide tails
phosphophospho-ink
Ubiquitin
Degradation tags
ubiquitinubiquitin-dark
An entity family
LDL receptor: base, light, tint, dark
ldlrldlr-lightldlr-tintldlr-dark
- Base fills the body; -light is a second chain, alternate subunit or highlight; -dark is the outline and the label colour (it turns light in the dark theme); -tint is a pale domain; -ink is a glyph that stays dark on a bright badge.
- Sugars use SNFG shapes and colours. Phosphate is amber wherever it appears.
- Label tokens reach 4.5:1 on cytosol, extracellular and lumen grounds in both themes; outlines reach 3:1.
- Never colour alone: states and partners that differ in colour also differ in shape or mark.
Specialising an archetype
Swap the kit family for the entity’s own; the silhouette, origin and anchors stay the same. Evolocumab adds the four hinge disulfides of an IgG2.
States and modifiers
A state is a separate symbol of the same entity. It may change the pose, what sits in a site, or add a badge; never the silhouette, colour family, size class or origin.
Conformation
Modification and assembly
Loss (schematic cue)
Occupancy, named enzyme
Modifiers
Relations in figures
Symbols meet at named anchors. Line style says what a step does or how well it is known, and the legend sits on every figure.
ligand_site on the receptor meets receptor_contact on the ligand.Line styles
- Movement
- Favoured route
- Route used less with the drug
- Unresolved or schematic step
- Inhibition, when the inhibitor is not drawn in its site
Catalysis is a curved movement arrow from substrate to product that passes the enzyme’s pocket; the enzyme is never an arrow end. Step badges are ink circles beside the first element of their step.
Scale
Every symbol at one zoom (the largest organelles are left out). Molecules are enlarged far more than organelles, so every figure says “Schematic, not to scale”.
Labels and evidence
- Labels sit outside symbols, in sentence case, in the entity’s -dark token; mRNA and protein stay distinct.
- Each entity lists the places it may appear, with the study event or claim behind each; drawing rules from claim caveats win over looks.
- Archetypes carry no claims: a figure specialises one into a registered entity or labels it as generic.
- Context anatomy (endothelium, mitochondria) is background, not a claim.
Add a symbol
- Register the entity (or class) with its places and the basis for each.
- Pick its family and start from that family’s archetype, so the silhouette, origin and anchors are shared.
- Give it a colour family (base, -light, -dark, optional -tint) that meets the contrast rules, or reuse drug for a drug.
- Draw at the origin, inside the size band, with anchors named by role.
- Add the manifest entry: family, palette, scale class, state, drawing rules, claims. Run
python tools/omfig.py validate. - Build, review the light and dark versions next to their neighbours, then use it in a figure.
What the validator checks
- Every colour is a figure token, and every token belongs to one of the asset’s declared palette families (ink is shared).
- Every asset declares a family from the 14 above and has an origin anchor at 0, 0.
- Membrane families cross the bilayer: the view box reaches y −9 and +9. Peripheral symbols reach the inner leaflet.
- Size bands: the largest side fits its scale class; small molecules stay within 40 units, ions 12, modifiers 28.
- Modifiers have an attach anchor. Archetypes depict a class entity and carry no claims.
- In figures, membrane symbols are mounted, slotted or attached, and every entity sits in a place its registry entry lists.
Library basics
| Layer | What it is | Example | Where |
|---|---|---|---|
| Entity | What something is, biologically (or a class of things) | LDL receptor ENT_LDLR | registry/entities.json |
| Place | A compartment where things can be | Early (sorting) endosome | registry/compartments.json |
| Symbol | One way to draw an entity or a place, in one state | LDL receptor, closed | assets/manifest.json, assets/2d/ |
| Instance | One placement of a symbol in one figure | HEPINC-ldlr-03 | compositions/*.json |
| Scene | A reusable stage with places, mounts and slots | Hepatocyte scene | scenes/ |
| Figure | Instances on a scene telling one mechanism | Inclisiran in a hepatocyte | compositions/ |
Ids and versions
ENT_entities (ENT_CLASS_for classes),CMP_places,AST2D_/ASTISO_/AST3D_symbols by tier (AST2D_KIT_for archetypes),SCN_scenes,PRS_figures. Instances are<figure prefix>-<short name>-<nn>.- Ids never change once published. When an id is renamed,
legacy_idsin the registry maps the old id to the new one. - Everything is a draft until reviewed. Claims keep the review status they have in their study.
Known gaps in 0.3.0
- Drug database ids are filled in for evolocumab and atorvastatin only (inclisiran still lacks them); Gene Ontology ids are marked unverified.
- Only the 2D tier exists. Ids are reserved for the isometric and 3D tiers.
- The statin and PCSK9-antibody symbols have no figure yet; SCAP, INSIG and the SREBP-2 precursor are not drawn, and warfarin has no symbols.
- The interactive builder (snap, connect, check) comes later; the registry already holds the data it needs.
- The symbols are not covered by the site license yet (License).