Skip to content
Open
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 16 additions & 6 deletions src/schema/rules/directories.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,16 @@
# The special "root" specifier describes the root of the dataset and only defines subdirectories.
# No naming convention applies, and the requirement level and opacity would be superfluous.
#
study:
bids-study:
root:
subdirs:
- code
- docs
- derivatives
- bids-raw
- bids-derivatives
- logs
- sourcedata
- phenotype
code:
name: code
level: optional
Expand All @@ -32,8 +34,12 @@ study:
name: docs
level: optional
opaque: true
derivatives:
name: derivatives
bids-raw:
name: bids-raw
level: optional
opaque: true
bids-derivatives:
name: bids-derivatives
level: optional
opaque: true
logs:
Expand All @@ -44,8 +50,12 @@ study:
name: sourcedata
level: optional
opaque: true
phenotype:
name: phenotype
level: optional
opaque: false
Comment on lines +53 to +56
Copy link
Collaborator

Choose a reason for hiding this comment

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

This was removed after this discussion: #2185 (comment)

I didn't see a justification for re-adding it, so I want to make sure this isn't slipped in with little consideration.

Copy link
Author

Choose a reason for hiding this comment

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

Yes, should have explained this addition based on offline conversations.
The reason for removing phenotype directory was that it would presumably appear in the raw dataset. But isn't that true for derivatives directory as well? It's a bit confusing having derivatives part of all three DatasetTypes but enforcing phenotype only be part of raw or derivative. In practice, phenotype data curation is likely to be more independent than that of derivatives, which is one of the reasons we prefer it to be at the top level.


raw:
bids-raw:
root:
subdirs:
- code
Expand Down Expand Up @@ -103,7 +113,7 @@ raw:
level: required
opaque: false

derivative:
bids-derivative:
root:
subdirs:
- code
Expand Down
Loading