-
Notifications
You must be signed in to change notification settings - Fork 117
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
BIDS json sidecar population with implicitly inherited information #550
Comments
Can you give an example and/or elaborate on what you mean by redundancy? It's already the case that every (Note that pybids currently does not read any metadata from image headers, or really anything other than JSON sidecars. That's something I'd be happy to accept a PR for.) |
I didn't realize this. The feature request would be to use that information to generate a tree on disk in the derivatives directory in which each bids json has all that inherited information. I beg forgiveness if that is sacrilege! |
BIDS-Derivatives datasets are treated exactly like ordinary BIDS datasets by pybids, so that behavior should also already be there... the only catch is that I'm not sure you can directly get the inherited values for a JSON file itself—you might need to do it through a |
Note that there's already a EDIT: Actually a more sensible approach would be to add a |
Ok, I'll take a look. I'll try add an inherit flag to |
I was exploring how to get AFNI to support BIDS metadata a little more cleanly. @jbteves and I discussed this a little in See: afni/afni#132
I was wondering whether pybids and its internal metadata model could be used to generate a view of the dataset (in the derivatives folder) that had all metadata propagated to each leaf. This could be bidirectional and seems like something that could be added as methods of BIDS_Layout. Something like "increase_metadata_redundancy" and "decrease_metadata_redundancy" will move metadata down to each leaf json sidecar up back up the tree as far as it can go to maximize the reduction of redundant information in the file system tree. Choosing fields for pushing up and down the tree might make the task easier (or at least not spend time/disk space on fields that are not of interest).
A related discussion regarding write the parsed metadata into a single file is also worth considering in this context: #243
The text was updated successfully, but these errors were encountered: