-
Notifications
You must be signed in to change notification settings - Fork 188
[WIP] Suggested modifications to directory layout of the bids-study DatasetType
#2191
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from 2 commits
b99a7bd
2d59198
7fc71c7
e0fe3ce
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
@@ -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 | ||||||||||
|
@@ -32,8 +34,12 @@ study: | |||||||||
name: docs | ||||||||||
level: optional | ||||||||||
opaque: true | ||||||||||
derivatives: | ||||||||||
name: derivatives | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I oppose this change on the grounds that Further, using the same directory names as other BIDS dataset types allows for code that recursively indexes datasets to care very little about the specific There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I see your point which I mostly agree. Although, I think what |
||||||||||
bids-raw: | ||||||||||
name: bids-raw | ||||||||||
|
bids-raw: | |
name: bids-raw | |
bids_raw: | |
name: bids-raw |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we will drop the bids
prefix idea and go back to calling it rawdata
and rely on docs to explain that this is a raw
bids Datatype
clarify any confusion with the sourcedata
. Does this work?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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 DatasetType
s 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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These top-level keys are
DatasetType
values. If you want them to be more mnemonic, you'll need some alternative way to match toDatasetType
.I would also recommend against hyphens in keys, as we have heretofore used valid identifiers, which makes traversing the schema using dot notation (
rules.directories.study
) possible.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, sorry this was not the right place to suggest changes to
DatasetType
values.The idea was to introduce
bids-
prefix in the directory names as an easier way to inferDatasetType
similar tosub-
andses-
directories. But that would possibly only work forbids-raw
andbids-derivative
subdirs within astudy
layout. Not sure if that's ideal at this point, so will simply revert to original naming.