Skip to content

Neurobagel federated search

Neurobagel is an open project that lets researchers search participant-level information across many data archives at once. Each archive runs a node, and a search asks every registered node which of its datasets contain participants matching the criteria, such as an age range, a sex, a diagnosis, an assessment, or an imaging modality. NEMAR runs a node so that its datasets can be found in that search, and every result links back to the dataset’s page on nemar.org, where the interactive viewer lives.

A dataset is reported only when it is public, published and openly attributed. That includes datasets deposited at NEMAR and NEMAR’s copies of datasets from OpenNeuro. The copies are included on purpose: a record from NEMAR links to NEMAR’s own page, viewer and metadata, so the same dataset can appear in the federation through both archives.

These are never reported:

  • private or unpublished datasets;
  • withdrawn, deleted or tombstoned datasets;
  • sandbox and test datasets;
  • any dataset whose authorship is withheld.

Eligibility is decided from the dataset’s catalog record, and it is checked again every time the node is asked a question and again before any record is written. A dataset that stops being eligible leaves the federation, as described under Keeping records current.

Only information NEMAR already publishes: the dataset’s name, authors, keywords, its Digital Object Identifier (DOI), a link to its NEMAR page, and the address of its public data. Data files are never copied to Neurobagel, and nothing about NEMAR accounts, email addresses or access is part of a record.

Participant information comes only from what the dataset itself publishes: its Brain Imaging Data Structure (BIDS) participants.tsv table, its participants.json description of that table, and the index of the files it contains. Participants appear under the identifiers the dataset itself uses, for example sub-01. A participant is counted when the dataset contains data for them. Rows of participants.tsv for people with no data in the dataset are not counted as participants, so the count a search shows can be lower than the number of table rows. NEMAR keeps both numbers in its own records.

Attribute Reported when Left out when
Age An age column in years whose values are real ages The age is in months or days, or zero stands for unknown (zeros make up at least half of the values), or a value cannot be read
Sex The rules in the next section say so Anything else
Diagnosis A group column whose values are recognised, such as healthy control, or a reviewed annotation The labels are not recognised and nobody has reviewed an annotation
Assessments A reviewed annotation names the column and its tool No such annotation exists
Imaging modality The dataset contains electroencephalography (EEG) or magnetoencephalography (MEG) data The data is of another kind, see Limits

A fact the rules cannot establish is left out and counted in the dataset’s report. It is never guessed.

Neurobagel’s term is sex, and NEMAR does not turn gender into sex. Datasets differ in what they recorded: some describe sex, some describe gender, and some have both columns. NEMAR defers to what the dataset’s own participants.json says.

  1. A column named sex is read as sex when its values are recognisable, for example F and M, or female and male.
  2. A column with any other name, such as gender, is read as sex only when its description in participants.json says sex and does not mention gender. A column described as gender is never reported as sex, and neither is a column with no description.
  3. When a dataset has both a sex and a gender column, each is judged by its own description.
  4. Numeric codes such as 1 and 2 are not read, because the convention differs between datasets. They are reported only after a person has checked their meaning against the dataset’s own documentation.
  5. Values the rules do not recognise are treated as missing.

The terms reported for sex are Neurobagel’s female and male. NEMAR does not report gender to Neurobagel.

Some tables cannot be read by the automatic rules, for example assessment columns or group labels that need a controlled term. For those, NEMAR keeps a reviewed annotation file. Each entry records where it came from and who reviewed it, and every term must come from Neurobagel’s published vocabulary. An entry applies only to the exact table it was reviewed against. If a dataset’s table changes, the entry stops applying and what it provided is withheld until a person reviews it again. The sex and gender rules above apply to annotations as well.

For OpenNeuro datasets, NEMAR may reuse annotations published by the Neurobagel community under the MIT licence. Reused entries are marked as such, and each is checked against the dataset’s own table and description before it is used.

NEMAR checks its output against Neurobagel’s own bagel tool and against the node software, so the records are valid for Neurobagel’s software.

Records are regenerated automatically when a dataset has a new version, when its metadata changes, when its annotation changes, and when NEMAR’s reporting rules change. Unchanged datasets are skipped.

When a dataset is withdrawn, deleted, made private or otherwise stops being eligible, it stops being answered right away from NEMAR’s side, it leaves the node typically within about an hour, and its stored records are deleted within a day. To ask for a dataset to be removed, use the takedown procedure.

Reporting is only as good as the dataset’s own documentation, and a few habits make a large difference:

  • Name the sex column sex. If you also collected gender, keep it in a separate gender column and say so in participants.json.
  • Describe each column in participants.json, and use the word that matches what you recorded: write “sex” for sex and “gender” for gender.
  • Give the age in years, and use n/a for an unknown age instead of 0.
  • Use clear, consistent labels in a group column, and describe them in participants.json.
  • Describe the values of categorical columns in participants.json, so numeric codes can be checked.

The dataset submission standards cover the rest of what a dataset should contain.

  • Neurobagel’s imaging-modality vocabulary currently has EEG and MEG only. Datasets of other kinds, such as intracranial EEG, electromyography, near-infrared spectroscopy or motion, are still reported, but without a modality, so a modality filter does not find them.
  • A search finds datasets whose documentation supports the criteria. A participant whose attribute was left out cannot be matched on it, so a search can miss participants that a reader of the raw files would find.

If a dataset is reported incorrectly, write to support@nemar.org with its dataset identifier and what is wrong. Fixing a dataset’s participants.json is usually the fastest correction, and the next regeneration picks it up.