Skip to content

Feature/idp-52 - Follow BIDS compliance and frontend data format conversion - #19

Merged
ddelpiano merged 9 commits into
developfrom
feature/IDP-52
Nov 6, 2026
Merged

ddelpiano merged 9 commits into
developfrom
feature/IDP-52

Conversation

@D-GopalKrishna

@D-GopalKrishna D-GopalKrishna commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Feedbacks from:
From IDP-52:

  • Name the dandiset if possible: the dialog has a name field for a new dandiset; empty means the protocol's name (78ef085).
  • Remove IDP from the name: the default name no longer says "(IDP)" (78ef085), and nothing DANDI shows says IDP anymore: protocol link, new dandisets' description, sign-in popup (e60925e).
  • A file in the OSB workspace with the dandiset link: every upload is zipped with a README.md that links its dandiset, says where the upload sits in it and how to cite it; OSB unpacks it into the run's inputs/, next to the data (d0635b4).

From IDP-53:

  • The shipped template works if re-uploaded: tested with the template folder as downloaded (Reporting Sheet + Testing Sheet + Weight log + PDFs): converted, uploaded and run end to end.
  • Zips with folders: folders are flattened, __MACOSX/ and hidden files skipped; only the workbooks and PDFs are read, so a zip of any size works (928254d).

BIDS compliance

Every upload now goes into the researcher's dandiset as a BIDS dataset (BIDS 1.10), converted in the browser:

  • Checked when the file is picked: the dialog converts it straight away and shows what the dataset will hold ("Ready for DANDI: 3 animals, 15 tables", with the folder tree below). Upload is blocked only on what BIDS can't do without: no Animal ID, no testing date, or no trial at all (928254d).
  • Nothing calculated or made up: cells are copied as Excel saved them. Every column description comes from the protocol PDFs or the sheet itself. The one assumption, species: mus musculus, is documented.
  • Described: a JSON per stage describing every column (with units from the headers), and a JSON beside each table with the cells above it (experimenter, start/end time, rewarded odor, the odor key: the letters mean different odors in different stages).
  • Re-uploads: a later upload of the same animal merges into participants.tsv and phenotype/ and replaces its tables for the same date and stage; nothing is deleted, and every upload stays in sourcedata/ (00801a5).
  • Validated: the output passes the BIDS validator with 0 errors; tested on the DANDI sandbox with three uploads into one dandiset.
  • Other changes: the DANDI instance is one setting, and the sandboxes and their API key are used in local development only (ee027b3, 0f3e290, 7876fd7).

What they see in the UI
image
image

Example of folder structure in DANDISET

dandiset 000xxx (draft)
├── dataset_description.json      name, BIDS 1.10.0, license, authors
├── README.md                     what each part below holds
├── participants.tsv              ABC001, ABC002, ABC003 (one row per animal)
├── phenotype/weight.tsv          ABC001, ABC002, ABC003 (Day 0 … Day 6)
├── task-fourchoice_acq-<stage>_beh.json × 5    what each column is
├── sub-ABC001/ses-<date>/beh/…_beh.tsv + .json    from upload 1
├── sub-ABC002/ses-<date>/beh/…_beh.tsv + .json    from upload 2 (the correction replaced it)
├── sub-ABC003/ses-<date>/beh/…_beh.tsv + .json    from upload 2
├── logs/                         protocol PDFs that came in a zip
└── sourcedata/                   the originals, as sent, each with our README
    ├── upload-2026-11-05T10-00-00Z/lab-batch-1.zip
    └── upload-2026-11-12T14-30-00Z/lab-batch-2.zip

@D-GopalKrishna
D-GopalKrishna marked this pull request as draft November 5, 2026 21:10
@D-GopalKrishna
D-GopalKrishna marked this pull request as ready for review November 5, 2026 22:20

@ddelpiano ddelpiano left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@ddelpiano
ddelpiano merged commit 03c4f00 into develop Nov 6, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants