NGS data lineage
Harmoniomics records your lab’s work as a lineage: a fixed backbone of fourteen record types joined by five kinds of link, and facets for everything your lab measures along the way.
The backbone
The backbone is the same in every lab and every node. Its set of record types is closed: adding one is a new major version of the standard, never a local change. What varies from lab to lab, such as kit fields, instrument settings, QC metrics and local rules, lives in facets on those records instead. That is what keeps two labs’ lineages comparable: the shape is fixed, the records are extended.
Material, processes and data
- Material: subject, specimen, extract, library and pool. Each step is its own record because each is where your lab makes a decision, uses a reagent lot, and can go wrong independently of the others. A portion of something is another record of the same type,
derived_fromthe original: an aliquot of a specimen is a specimen, so any depth of splitting is one kind of link. - Processes: a sequencing run is one execution of an instrument; an analysis run is one execution of a pipeline or tool, one per invocation rather than per internal step. A run states what it used from the moment it starts, so a run that failed before producing anything still says what was on it.
- Data: a data file is a reference to one file, and a data file set is a group of files made together, such as a run’s raw folder or one sample’s FASTQ pair. Harmoniomics never stores file contents, only where they are. A set can be registered alone; files are added when something must attach to one of them.
What attaches to it
- Project: an administrative grouping, such as a study, a grant or a customer order. It answers “whose samples are these”.
- Context: a scientific grouping, such as a cohort, a family, a clinical test order or a sampling campaign. A member’s role, such as proband, is recorded on its link.
- Protocol: a documented procedure and its version: an SOP, or a pipeline such as
nf-core/sarek 3.4.0. - 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: a person or an instrument that performed a step.
The five links
| Link | Stored from → to | Read as | For example |
|---|---|---|---|
derived_from | child → parent | this came from that | EXT-0042-P derived_from SPEC-0042-P |
part_of | member → group or set | this belongs to that | LIB-0042-P part_of POOL-20260113 |
produced_by | output → run | that run made this | BCL-20260113 produced_by RUN-20260113 |
used | step → what it used | that step consumed or relied on this | EXT-0042-P used KIT-QIAAMP-LOT-A1 |
same_as | record → record | these are one real thing | a specimen registered twice |
A same_as link is an assertion, never a merge. It records who asserted it, when, how, and with what confidence, and the two records stay separate. A merge could not be undone if the assertion later proved wrong, and two departments may disagree.
What a record holds
A record holds only who it is:
- An internal ID: opaque and permanent, with no meaning of its own.
- A name:
harmoniomics://{institution}/{department}/{type}/{local ID}, where the local ID is whatever your LIMS already calls it. - External identifiers: what other systems call it, such as a BioSample accession, a tube barcode, or where a file is stored. One can be added whenever it arrives, for example an accession that comes back from an archive weeks later.
Everything else, from the specimen type to the Q30 of a run or the coverage of a sample, is a facet.
Facets
A facet attaches a block of fields to a record, or to a link, validated as one unit against a schema your department registers. The fields are yours: your names, your units, your codes, exactly as your LIMS or pipeline writes them. Mapping them to shared concepts comes afterwards, and never changes what was recorded.
Subject
SUBJ-0042-P
Facet Enrolment
schema clinical/enrolment v3 · written by lims-export 2.4
- family_role
- proband
- date_of_birth
- withheld
- enrolment_site
- Ward 4
mapped to a concept harmoniomics-concept:family_role
patient data
stored
Sequencing
RUN-20260113
Facet RunMetrics
schema core-lab/run-metrics v1 · written by bcl-qc 0.9
- instrument_model
- NovaSeq 6000
- percent_q30
- 92.4
- cluster_density_k
- 2,310
mapped to a concept harmoniomics-concept:instrument_model
stored
stored
File set
FASTQ-0042-P
Facet QcSummary
schema core-lab/qc-summary v2 · written by MultiQC 1.21
- percent_duplication
- 11.2
- mean_coverage
- 34.1
- report_path
- qc/0042-P.html
mapped to a concept harmoniomics-concept:percent_duplicate_reads
mapped to a concept harmoniomics-concept:mean_coverage
stored
- Every facet says what it is. It names its schema and version, and what wrote it (a LIMS export, MultiQC, your own script), so anyone can check it, including a system that has never seen your facet before.
- Stored whole, indexed where it matters. Every field is kept as written. The fields you will filter, group or compare across samples, those mapped to a concept or registered for the index, are also indexed one value at a time, which is what makes them searchable across departments.
- Patient data stays out of reach. Where samples come from people, a field your schema marks as patient data is never indexed, never a search criterion, and withheld from every read.
- Corrected as a whole. Re-running a tool corrects its facet; what it said before stays in the record’s history.
- No facet is part of the standard. One becomes shared only when two independent labs need the same shape to work together.
To see which facets your departments attach to each record type, open the Facets view of Explore in your node’s web interface.