From 90ec07f1e8357d1ba209570fdac3a1394a9d677b Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Thu, 25 Apr 2024 14:55:51 -0400 Subject: [PATCH] [FIX] Move `rawdata/` into `sourcedata/raw` in alternative structure example, clarify on naming of datasets themselves (#1741) * RF: move `rawdata/` to `sourcedata/raw` in an example + make overall dataset to be BIDS dataset This is my take on an extended discussion about ambiguity of `rawdata/` example: https://github.com/bids-standard/bids-specification/pull/1734/files#r1534475631 * Minor rewording in description of sourcedata/ content Prior one bundled naming aspect under the same MUST. I separated into separate sentences, added explicit statement that BIDS does not prescribe a particular naming scheme for source data. And added explicit RECOMMENDED on the example how to organize/name files there. * Add one dataset_description.json into an example to make it explicitly a BIDS dataset * My take on dataset naming common principle * [DATALAD RUNCMD] Replace use of rawdata in tests with explicit 'noncompliant' === Do not change lines below === { "chain": [], "cmd": "sed -i -e s,rawdata,noncompliant,g tools/schemacode/bidsschematools/validator.py tools/schemacode/bidsschematools/tests/test_validator.py tools/schemacode/bidsschematools/tests/data/expected_bids_validator_xs_write.log", "exit": 0, "extra_inputs": [], "inputs": [], "outputs": [], "pwd": "." } ^^^ Do not change lines above ^^^ * Do not use e.g. * Move dataset_description.json in the example to be listed after folders * Remove the notion that example layout can in fact be a valid BIDS dataset * Use lower case "recommended" as not part of BIDS spec, and recommend underscores too * Make into a single sentence Co-authored-by: Chris Markiewicz --------- Co-authored-by: Chris Markiewicz --- src/common-principles.md | 53 ++++++++++--------- .../data/expected_bids_validator_xs_write.log | 2 +- .../bidsschematools/tests/test_validator.py | 4 +- tools/schemacode/bidsschematools/validator.py | 2 +- 4 files changed, 33 insertions(+), 28 deletions(-) diff --git a/src/common-principles.md b/src/common-principles.md index 9b10ba19f2..3d9bc233af 100644 --- a/src/common-principles.md +++ b/src/common-principles.md @@ -97,6 +97,12 @@ and/or files (like `events.tsv`) are fully omitted *when they are unavailable or instead of specified with an `n/a` value, or included as an empty file (for example an empty `events.tsv` file with only the headers included). +## Dataset naming + +BIDS does not prescribe a particular naming scheme for directories containing individual BIDS datasets. +However, it is recommended to use a short descriptive name that reflects the content of the dataset, avoid spaces in the name, and use hyphens or underscores to separate words. +BIDS datasets embedded within a larger BIDS dataset MAY follow some convention (see for example [Storage of derived datasets](#storage-of-derived-datasets)). + ## Filesystem structure Data for each subject are placed in subdirectories named "`sub-