Reference
Every definition and assumption in one place: how a Harmoniomics node models its data, what the words on these pages mean, and what the node’s web interface assumes when it reads them.
What a node records
Harmoniomics records the provenance of sequencing work: which material came from which source, which runs turned it into data, which files came out, and what was measured along the way. It is a lineage graph, not a laboratory information system: it says what happened, never what should happen next.
The model has fourteen record types and five link types, and the set is closed. Everything a laboratory varies on (kit fields, instrument settings, QC metrics, local rules) lives in facets attached to those records, never in new types or columns: the topology is fixed, the records are extended.
The node’s web interface reads without writing: browsing asks for the reader role only, and every change is a form a person submits, made with the one role it needs, through the node’s public API.
Institution and departments
A node serves one institution (the organisation, or org). Its departments, such as a sequencing core, a clinical laboratory or a research group, are namespaces of that node, and every record belongs to exactly one, named in its identifier: harmoniomics://{org}/{namespace}/{type}/{local_id}.
- Nothing of one department is visible to another unless the owner grants it. A grant is one way, has a reason, may expire, and is recorded in the event log.
- A grant of
aggregateslets the reader count the owner’s records; a grant ofrecordsalso lets it read them. - A person or machine sees the union of the departments its token belongs to or was granted. A department it cannot see does not exist for it: its records are left out of lists, and a link is shown only when both of its ends are visible.
- A retired department keeps its records and history; nothing new is written in it.
- The namespace
_orgis reserved for the institution itself, for example facet schemas every department shares.
The institution’s pages (Overview and Explore) combine every department the viewer may see; a department’s pages (under /ns/{namespace}) cover that one alone, and add its Lineage and Event log.
Records along the lineage
The main lineage runs from a source to a file. Each step is its own record because each is where a laboratory makes a decision, consumes a reagent lot, and can go wrong independently of the others. Material is physical, a process is a run, and data is a file or a set of files.
| Type | What it is | Required link |
|---|---|---|
Subject Subject | The source a specimen was taken from: a person, an organism, or an environmental sampling site. It is not a patient record: Harmoniomics holds no demographics or diagnosis on it. | — |
Specimen Specimen | Material as collected, before any laboratory processing: a blood draw, a biopsy, a swab, a water sample. | derived_from a Subject |
Extract Extract | Nucleic acid (DNA, RNA) extracted from a specimen. The first step that consumes a reagent lot and is performed by someone. | derived_from a Specimen |
Library Library | A sequencing-ready library prepared from an extract: the last physical record that is still one sample. | derived_from an Extract |
Pool Pool | Several libraries combined to be sequenced together: the physical unit a run loads, where multiplexing happens. | — |
Sequencing SequencingRun | One execution of a sequencing instrument: the process that turns material into data, and the bridge between the physical and digital halves. | — |
File set DataFileSet | A named group of files produced together by one run: a raw run folder, one sample’s FASTQ pair, a pipeline’s output directory. Sets may nest (a run’s set holding one set per sample). | produced_by a run |
File DataFile | A reference to one data payload (FASTQ, BAM, VCF, a report). Harmoniomics never stores file contents; where the bytes live is an external identifier. | produced_by a run |
Analysis AnalysisRun | One execution of a pipeline or tool (demultiplexing, secondary analysis, QC aggregation): one per invocation, not per internal step. | — |
A portion of something is another record of the same type, derived_from the original: an aliquot of a specimen is a Specimen, a re-pooled portion is a Pool. There is no aliquot type, so any depth of splitting is one relationship.
A data file set need not list every file. Registering the set alone, with its location, is a valid level of detail; files are added when something must attach to one of them.
Supporting records
Supporting records give the lineage meaning without being material or data. None sits in the lineage; each attaches to it, either as something a step used or as a group a record is part_of.
| Type | What it is | Required link |
|---|---|---|
Project Project | An administrative grouping: a study, a grant, a customer order. It answers “whose samples are these”. | — |
Context Context | A scientific grouping: a cohort, a pedigree (a trio), a case, a control set, a clinical test order, a sampling campaign. A member’s role (proband, control) is a facet on its link. | — |
Protocol Protocol | A documented procedure and its version: a laboratory SOP, or a pipeline such as nf-core/sarek-3.4.0. | — |
Reagent Reagent | A kit lot, not a kit type: the question is never “did we use this kit” but “did lot A1 correlate with failures”. | — |
Actor Actor | A person or an instrument that performed or operated a process. Which it is, and its serial number or staff ID, are facets. | — |
Links
Every relationship is a link (an edge) with a fixed direction. The node stores each one from child to parent; a record’s Lineage tab in Explore draws them the way material and data flow.
| Link | Stored from → to | Read as |
|---|---|---|
derived_from | child → parent | this came from that |
part_of | member → container | this belongs to that group or set |
produced_by | output → run | this was made by that run |
used | run or step → input | that step consumed or relied on this |
same_as | record → record | these two records are one real thing (an assertion) |
A sequencing run used the pool it loaded, and its raw output set is derived_from that pool. From there a per-sample FASTQ set is derived_from its library, so every file traces back to the tube it came from without passing through the pool’s other samples.
Links can carry facets too, for example a member’s role in a Context.
Upstream and downstream
Upstream is what a record was made from; downstream is what was made from it. The node walks one step at a time, and these pages use its rules:
- Downstream of a record: records
derived_fromit; the data file set or pool it ispart_of(never a Project or Context); runs thatusedit; and what a runproduced. - A run reached from one of its inputs yields only the outputs that have no
derived_fromparents of their own, so walking down from one library through a shared run does not reach the other samples’ files. - Upstream is the exact inverse: parents, the members of a set or pool, the run that produced a record, and what that run used.
- Projects, Contexts and
same_aslinks are shown around a lineage but never followed through: they reach across all of it.
A lineage never passes into a department the viewer may not see; it stops at the boundary.
Identity
Every record has three layers of identity:
- Internal ID
- A UUIDv7, opaque and immutable. It means nothing; never read meaning into it.
- Name
harmoniomics://{org}/{namespace}/{type}/{local_id}, where the local ID is whatever the source system already calls the thing (a LIMS accession, a barcode). Names are unique within a department and type.- External identifiers (xrefs)
- CURIEs with Bioregistry prefixes, or URIs, saying that another system knows the record by that identifier (a BioSample accession, a DRS URI). They are additive and never authoritative.
When two records turn out to describe one real thing, the node records a same_as link carrying who asserted it, when, how and with what confidence (0 to 1). The two records stay separate: a merge cannot be undone if the assertion later proves wrong, and two departments may disagree. These pages list same_as links with their confidence and never merge records.
The same local ID in two departments is a lead, not an identity. Explore’s cross-department finds group records by local ID to help look for them, but only a same_as link asserts that two records are one.
Facets and schemas
A facet attaches information to a record or a link: many fields, validated as one unit against a JSON Schema. Facets are where every centre-specific field lives, so these pages render them generically and never assume a field exists.
- Facet type
- What a facet is, such as
QcSummaryorRunOutcome. One facet type may be attached to several record types. - Schema
- The versioned JSON Schema that validates a facet, registered with the node by a department or, under
_org, for the whole institution. Each facet names its schema (_schemaURL) and what wrote it (_producer). - Indexed field
- A field the node keeps one typed row per value for, so it can be filtered and compared across records: one mapped to a concept, or registered for the index by name.
- PHI field
- A field its schema marks as patient data. It is never indexed, never a query criterion, and withheld from every read; these pages show it as “withheld”.
- Sensitive field
- A field that may cross an institution’s boundary at record level only when consent and an access grant cover it.
Where facets attach is not stated by schemas; the facet map in Explore shows it from the node’s counts of current facets per schema, facet type and record type.
Concepts and mappings
Institutions name the same measurement differently: one centre’s duplication_pct is another’s pct_dup. Harmoniomics relates them by mapping each field onto a shared concept, and a search by concept finds values in every field mapped to it, in any department.
- A concept is a CURIE. Where a standard terminology already has the concept (LOINC, HPO, NCIT), the concept is that term; the library mints its own (
harmoniomics-concept:) only where none exists. - Each concept has a domain, labels and definitions in Portuguese, Spanish and English, a value type (number, text, boolean, date or coded), a UCUM unit for numbers, a value set for coded ones, and a sensitivity.
- A field is mapped by its schema’s own mapping, or by a department’s mapping assertion. Only exact mappings widen a search; close, broad, narrow and related ones are shown, not followed.
- Values are converted to the concept’s: spellings recoded to its codes, numbers converted to its unit. Values not yet recoded are counted and shown as such.
- The library is read-only and changes only with a release, so every node of a release has the same concepts. Patient-data concepts are never offered as search criteria.
These pages say how a field is mapped (method, confidence) but never who asserted it.
Projects and contexts
A record joins a Project or Context with a part_of link. The two cut across each other freely: one study may span several trios, and one trio may appear in several studies.
A project holds its members and everything downstream of them. That is what its counts add up, and what the project filter selects: choosing a project keeps its members and every record reached downstream from them; “Not in a project” keeps the records no project reaches. A record may be in several projects.
- Member: the record has a
part_oflink to the project. - Downstream: the record is reached downstream from a member.
- With every project and “Not in a project” selected, nothing is filtered; with none selected, nothing is kept.
Two times
Every event carries two timestamps, and they differ constantly: an operator records Monday’s extraction on Wednesday, an import backfills last year’s runs.
- Valid time
- When the fact was true in the laboratory. Supplied by whoever recorded it.
- Transaction time
- When the node learned it. Always set by the node, never supplied.
Keeping both answers “what was true of this library on 3 March” (valid time) and “what did we believe about it on 3 March” (transaction time). The Event log lets you choose the axis, order by it, bound it, and cut the log at a point in time on it. Times on these pages are in UTC.
The event log and corrections
Every write is an event in an append-only log, and the records you read are a projection of it, which can be rebuilt from the log at any time. Nothing in the log is ever updated or deleted.
- Correct
- A new event that supersedes the last one about a record, with a required reason, and changes what it says: a local ID, an identifier, a facet’s data. The record stays; what it said before stays in the log.
- Retract
- Withdraw a record or a link that should never have existed. It stops appearing in reads but stays in the database, with the event that withdrew it. A retraction’s time is a transaction time: it is a change of belief, not of what was true in the laboratory.
- Superseded
- An event a later one corrected. These pages show superseded events, marked, and never hide them.
A sample swap is normally fixed by retracting the wrong link and creating the right one, not by touching either record. A correction can itself be corrected, so each record’s history is a single line.
Counts and withheld counts
- Counts are of current, believed records: retracted ones are left out. There are no time windows; every count is a total now.
- A small count (from 1 to the node’s threshold less one, 4 by default) is withheld so that it can’t single anyone out, and so is any count that would let a withheld one be worked out from the others.
- A withheld count is shown as “supp.”, never as zero or “<5”, because a withheld total across departments may be large. A withheld project count is always small, and is shown as “<5”.
- A total that includes a withheld count is shown with “≥”: it is a lower bound.
- Large counts are rounded (1.2k, 49k, 1.3M), with the exact count in the tooltip.
- The networks on the overviews are samples of the records, laid out from the subjects’ lineages, and their labels say so. They are pictures, not counts.
What the web interface assumes
- It uses only the node’s public API, through a proxy that allows only the reads these pages use. A signed-in person’s requests carry their own token and ask for the
readerrole only; anonymous ones, where a node allows them, get the proxy’s read-only token. Anything the API does not answer, these pages do not show. - A record’s department is read from its name.
- Process state (“ready for sequencing”, “QC failed”) is derived from records and events, so these pages never present a next step or a workflow status as authoritative. A run’s outcome facet is history, not an instruction.
- The Event log shows what each event was about, never its data or who recorded it. A record’s own history shows its facets’ data, with patient data withheld.
- Department labels come from the node in its own languages; record names, local IDs and namespaces are shown as they are.
- When a read fails, only the panel that needed it says so; the rest of the page still shows.
What is deliberately not modelled
- No “next step” link and no status field: Harmoniomics records what happened; others decide what happens next.
- No plate maps, wells or liquid-handling detail: that is a LIMS’s job. A plate position is at most an external identifier.
- No file contents: a data file is a reference.
- No diagnoses or clinical interpretation: provenance, not interpretation.
Glossary
- Record
- One instance of the fourteen types (an entity): a specimen, a run, a file.
- Link
- A directed relationship between two records (an edge).
- Kind
- How these pages group record types: material, process and data along the lineage; grouping, resource and agent among supporting records. Each kind has its own colour.
- Lineage
- The records reached from one record by following links upstream, downstream or both.
- Local ID
- The source system’s own identifier for a record, the last part of its name.
- Department
- A namespace of the node, with its own records; the unit of visibility.
- Facet
- A validated block of fields attached to a record or link.
- Concept
- A shared meaning that fields are mapped onto, so they can be searched together.
- Event
- One append-only entry of the log: a record created, linked, corrected, retracted, an identifier added, a facet attached.
- Believed
- Current and not retracted: what the node holds true now.
- Withheld
- Not shown, by rule: a small count, or a patient-data field.