Skip to content
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

Improve handling of the metadata #79

Closed
2 of 3 tasks
Remi-Gau opened this issue Oct 29, 2020 · 2 comments
Closed
2 of 3 tasks

Improve handling of the metadata #79

Remi-Gau opened this issue Oct 29, 2020 · 2 comments
Labels
enhancement New feature or request

Comments

@Remi-Gau
Copy link
Collaborator

Remi-Gau commented Oct 29, 2020

A few basic functions that I would find useful, from the perspective of creating pipelines that generate/process derivatives in a BIDS-compliant manner:

  • A function for changing a BIDS filename, based on changes to specific key/value pairs (i.e., changing, adding, and removing key/value pairs to a name, and maintaining the proper order of fields in the name).
  • A function for changing one or several fields in a .json metadata file (e.g., to generate a new metadata file after applying some transformation / preproc step to a dataset)
  • A non-private version of bids-matlab's get_metadata function. I frequently find myself wanting a simple function to check a specific metadata field of a single file, without having to run both bids.layout and bids.query. I understand the rationale for keeping get_metadata private, but from my perspective it would be very useful to have a public version of something like this command.

Originally posted by @bmdeen in #60 (comment)

See also comments:

#60 (comment)

@Remi-Gau
Copy link
Collaborator Author

Originally posted by @gllmflndn

@bmdeen: good point about get_metadata: we should have a user-level helper function to query the metadata of a given file.

@Remi-Gau
Copy link
Collaborator Author

Add a function for changing one or several fields in a .json metadata file (e.g., to generate a new metadata file after applying some transformation / preproc step to a dataset)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done
Development

No branches or pull requests

1 participant