Study Metadata & MIxS
MIxS — Minimum Information about any Sequence — is the Genomic Standards Consortium’s family of checklists that define the minimum contextual metadata a sequence needs to be reusable. A read file without a collection date, a location and an environmental context is data nobody else can interpret.
ENA implements the checklists as numbered specifications (ERC0000nn). SeqDesk
ships the ENA catalog offline, presents it as an Environment Type picker when
you create a study, and stores your answers per sample.
Choosing an environment type
The picker is driven by the checklist registry
(GET /api/mixs-checklists),
so it shows whatever your installation currently has available rather than a
fixed list. On a stock install that is all seventeen shipped checklists.
Thirteen of them are the GSC MIxS environment packages and have a canonical short id in SeqDesk:
| Environment type | Slug stored | ENA accession | Fields | Mandatory |
|---|---|---|---|---|
| Human Gut | human-gut | ERC000015 | 82 | 8 |
| Human Oral | human-oral | ERC000016 | 81 | 8 |
| Human Skin | human-skin | ERC000017 | 82 | 8 |
| Human Associated | human-associated | ERC000014 | 99 | 8 |
| Host Associated | host-associated | ERC000013 | 89 | 8 |
| Plant Associated | plant-associated | ERC000020 | 102 | 8 |
| Soil | soil | ERC000022 | 106 | 10 |
| Water | water | ERC000024 | 130 | 9 |
| Wastewater/Sludge | wastewater-sludge | ERC000023 | 88 | 8 |
| Air | air | ERC000012 | 77 | 9 |
| Sediment | sediment | ERC000021 | 107 | 10 |
| Microbial Mat/Biofilm | microbial-mat | ERC000019 | 113 | 10 |
| Miscellaneous | misc-environment | ERC000025 | 94 | 8 |
The remaining four have no slug and are stored by accession:
| Checklist | Accession | Fields | Mandatory | Use for |
|---|---|---|---|---|
| ENA default sample checklist | ERC000011 | 30 | 2 | Samples that fit no environment package |
| GSC MIxS human vaginal | ERC000018 | 89 | 8 | Human vaginal microbiome |
| GSC MIMAGS | ERC000047 | 57 | 18 | Metagenome-assembled genomes |
| ENA binned metagenome | ERC000050 | 52 | 14 | Binned metagenome submissions |
What gets stored in Study.checklistType. If the checklist you pick maps to
one of the thirteen slugs, the slug is stored (soil). Otherwise the raw
accession is stored (ERC000047). Both resolve; older studies and seeded demo
data may also contain a display name (Water), and SeqDesk normalises all three
forms when it looks the checklist up.
What the numbers mean in practice
GSC MIxS water asks for 130 fields. Nine are mandatory; the other 121 are optional and exist so that a study can be exhaustively described, not so that every study must be.
The Metadata Fields panel that appears once you pick an environment lets you choose which optional fields to collect. Mandatory fields are always included and cannot be switched off. Everything you enable becomes a column in the sample metadata table, so a careless selection turns a 24-sample study into a 24 × 130 grid nobody will finish.
A reasonable default is: take the mandatory set, then add the handful of fields your analysis or your funder actually needs.
Example — the ten mandatory fields of GSC MIxS soil
| Field | Unit | Example value |
|---|---|---|
| project name | — | Rhine floodplain survey 2026 |
| collection date | — | 2026-04-15 |
| geographic location (country and/or sea) | — | Germany |
| geographic location (latitude) | DD | 51.2277 |
| geographic location (longitude) | DD | 6.7735 |
| depth | m | 0.1 |
| elevation | m | 38 |
| broad-scale environmental context | — | terrestrial biome |
| local environmental context | — | floodplain |
| environmental medium | — | soil |
Where metadata is stored
| Scope | Column | Written by |
|---|---|---|
| Study-level custom fields | Study.studyMetadata (JSON) | Study wizard, study edit page |
| Checklist choice | Study.checklistType | Study wizard, study edit page |
| Checklist version pin | Study.mixsVersion | Stamped once, at study creation |
| Per-sample MIxS answers | Sample.checklistData (JSON) | Order wizard and study metadata surfaces |
| Units for numeric fields | Sample.checklistUnits (JSON) | Only the order wizard and the order’s sample table |
Study metadata entry writes checklistData only. It never touches
checklistUnits, so units captured during ordering are preserved but cannot be
entered or corrected from the study side. If your workflow needs units, collect
the MIxS metadata on the order.
How writes merge
Who you are changes how a metadata save behaves:
- A facility admin writing per-sample metadata replaces
checklistDatawith exactly what was submitted. - A researcher’s write is merged field-by-field, and only for the fields the questionnaire currently exposes. A partial post, or one made after an admin shrank the questionnaire, will not wipe answers you captured earlier. Clearing a value therefore means submitting it empty — omitting it leaves the old value in place.
The same asymmetry applies to studyMetadata on PUT /api/studies/[id].
Version pinning
The checklist catalog is not frozen. It ships as JSON under
data/field-templates/mixs-full/ and can be refreshed from a remote registry, at
which point the active version number increases.
To stop a refresh from retroactively changing a study’s fields:
- When a study is created with a checklist, SeqDesk records the currently
active registry version in
Study.mixsVersion. - Before an update is applied, the outgoing configuration is snapshotted under its version number.
- Resolving a checklist for a study tries, in order: the snapshot for the pinned version, then the active checklists, then checklists marked deprecated, then the committed baseline files.
The last 5 versions are retained as snapshots. A study pinned to something older falls through to the active or baseline definition, which may differ from what it was authored against.
Studies created without a checklist have mixsVersion = null and are never
pinned. Adding a checklist later from the edit page does not pin the study
either — only creation stamps the version.
Changing the checklist afterwards
PUT /api/studies/[id] accepts checklistType, so the environment type can be
changed at any time — including after submission, which the API does not block.
It is almost always the wrong thing to do. The answers already in
checklistData are keyed by field name; switching from soil to water leaves
soil-only answers orphaned and water-only mandatory fields empty, with no warning
and no migration. If you must change it, expect to re-enter the per-sample
metadata.
What ENA checks
Before a submission is accepted:
- The study needs a non-empty title, and a description is expected.
- Every sample needs a valid NCBI
taxId— see Organism & Taxonomy. - The mandatory fields of the selected checklist must be filled for every sample.
- Values must satisfy the checklist’s own type and unit constraints — ISO dates, decimal degrees for latitude and longitude, and so on.
SeqDesk’s own wizard is more forgiving than ENA: missing required per-sample values are raised as warnings you can dismiss, not as hard errors. That is deliberate — you can create the study and complete metadata later — but it means a study can look finished and still fail at ENA. The Preparing a Submission surface runs the real checks.
Customising the study form
Facility admins can add institution-specific study-level and per-sample fields through the Study Form Builder. Study fields are normalised into two fixed sections — Study Information and Metadata — plus an Additional Details bucket for ungrouped fields, in the same way order fields are.
With the dynamic-studies module enabled, each study carries its own
questionnaire instead of sharing the global one.
Troubleshooting
| Symptom | Cause | Fix |
|---|---|---|
Checklist not found: ERC000099 | The accession is not in the active registry or any retained snapshot | Check the catalog in admin settings |
| Metadata columns changed after a registry update | The study was not pinned, or its pinned version aged out of the 5 retained snapshots | Re-check the values against the current mandatory set |
| Units are missing from exported metadata | Units are only captured in the order wizard | Collect MIxS metadata on the order, not the study |
| A researcher’s save appeared not to clear a field | Omitted fields are preserved for non-admins | Submit the field with an empty value |
| ENA rejects a mandatory field you filled in | Format mismatch — date, decimal degrees, controlled vocabulary | See ENA troubleshooting |
Next
- Study Workflow — marking a study ready and getting it registered.
- Samples & Metadata — the same checklist catalog seen from the order side.