N-DOS

N-DOS

A shared language for animal neuroscience data, and the tooling that makes following it practical.

Every neuroscience lab invents its own way of organising data. Often every lab member invents their own. None of them can read each other’s — and two years on, a lab frequently can’t read its own. Meanwhile the standards that do exist — BIDS, NWB, DANDI — all begin at publication, which is years after the point where the data was made and where it was lost.

N-DOS is a specification for the part in between, plus the tools that make complying with it practical, plus the means to bring data that predates it up to it. It hands off to BIDS and NWB rather than replacing them.

pip install ndos

Zero runtime dependencies — Python 3.9+ and the standard library. Nothing changes on your disk unless you name one of the three commands that can, and each shows a plan and waits.

→ Why N-DOS exists, the reasoning and the evidence behind it.

Three answers, not two

The clearest way to show what N-DOS is for. Four sessions, four animals, one question. This output is committed in the repository and regenerated by a test, so it is what the code actually prints:

Query plan:
  species = mus musculus   [you typed 'mouse']   (declared)
  sex = F   (declared)
  target_region ~ CA1   (declared)

Considered 4 sessions: 1 matched, 2 unresolved, 1 excluded.

------------------------------------------------------------------------
MATCHED (1)
------------------------------------------------------------------------
  ndos-0000000001  raw_data/M101/20250310
      species = mus musculus  (declared)
      sex = F  (declared)
      target_region = dorsal CA1  (declared)

------------------------------------------------------------------------
CANNOT BE RULED OUT (2)
------------------------------------------------------------------------
  These meet every criterion that could be checked, but a deciding
  value was never recorded. They are not non-matches.

  ndos-0000000003  raw_data/M103/20250310
      sex: recorded as unknown; checked but could not be determined
  ndos-0000000004  raw_data/M104/20250311
      species: never entered
      sex: never entered
      target_region: never entered

A session whose species nobody wrote down is not a session known not to be a mouse. A tool that conflates those hands you a biased cohort without saying so. Every value N-DOS stores records how it is known — observed, declared, computed, or checked and genuinely unknown — and a blank is none of them.

The standard

The N-DOS specification — directory structure, how subjects and sessions are identified, how files are named, what metadata an experiment carries, and how each value is known.

A standard nobody can comply with is just a PDF. So the specification defines three things a project can be, and the tools withhold nothing at the lower levels:

  What it means What it costs you
N-DOS-readable N-DOS can inventory, search and query it in whatever organisation it already has Nothing. No layout, no metadata, no permission to change anything
N-DOS-conformant It satisfies every MUST: the directories, the subject-then-session shape, the identifier rules A reorganisation you choose to do, with a plan shown first
N-DOS-traceable It also records how its facts are known — evidence, flags, provenance Metadata somebody has to fill in

A lab with an inherited archive starts at readable and may reasonably stay there. Most of what N-DOS does is available at that level.

What the tools do

All of it also runs in a window: ndos gui, served by the package itself, bound to this machine only. Nothing is uploaded anywhere.

Start here

Worked examples

Both carry committed output, regenerated by a test, so what you read is what the code prints.

Schema contracts

Versioned JSON Schema, served at the identity each one declares:

Looking for pilot testers

No external lab has completed a pilot yet. That is the single most useful thing a reader of this page can change.

If you have a directory of lab data nobody fully understands any more, that is exactly what this needs to meet. It takes about fifteen minutes and will not move or change your data. No data needs sharing — every form asks about the shape of your directories, never their contents.

   
Tell us how it went → Even “I gave up at step three” is a result
It read my folders wrongly → The most useful report there is
Something is broken → A crash or a wrong answer

Elsewhere

Status: 0.2.0. The software works and is tested on Linux, macOS and Windows. The specification is a draft at 0.1 and will change in response to labs using it. N-DOS claims no conformance to BIDS or NWB that it cannot demonstrate.

Apache-2.0. By Elnaz Alikarami.