-
Notifications
You must be signed in to change notification settings - Fork 33
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-matlab: a "wish-list" of enhancements and requests for new features #60
Comments
I wonder if we can use the BIDS schema that is being developed and used by the validator to help with this. |
Hi! Sorry if I'm butting in here, since this isn't my project. I'm curious about this:
Could you go in to this a little bit more, particularly with respect to how you see the BIDS data structures represented as Matlab datatypes inside running Matlab code? Matlab's To my mind, it might be nice to have custom Matlab Maybe there'd be a use case for something like the Java XML Beans binding approach, where it maps an XML schema to Java object sets - you could map the BIDS JSON Schema entities to Matlab classes, but still allow for property constraints, other validation, and custom methods added to them? |
hey @apjanke responding quickly here eventhough I am not the one who suggested this.
I am not sure of exactly in which direction this could go in terms of implementation but this could prove very useful if it can prevent us having to write tons of code for generating filenames for each use case in th BIDS world or to help with some of the other "write" aspect that bids-matlab could have. Not sure we want to do TOO much validation on our side though and I would relegate that to the bids-validator front. Noob question: how easy would it be to convert the current BIDS yml schema into something that we can use? |
I think that if we could automate the conversion of the yml based schema into something suits our need better. That would indeed make the code base a LOT lighter. :-) |
If we want to use this schema (which I think we should), we can either 1/ use or implement a (simplified) YAML parser or 2/ convert it to JSON first and use this in bids-matlab. I would recommend option 2 and see whether the JSON-converted schema could be stored in the bids-specification repository too (the YAML version being the authoritative one and the JSON one being automatically converted and kept in sync). |
hahaha
Yes that sounds like a good idea to me: my hack was very much tailored to my current needs which is very UNIX + datalad heavy. :-) |
I prefer option 2 as well. I think that this automatic conversion could be part of the infrastructure of the specs. Would need to raise the issue in the specs repo and sor that there before we can start working on this. |
@nbeliy Actually moving your comment to its own issue to help with the discussion. |
Will close this issue and have every feature request be handled with a different issue / discussions. To get an overview we will use the github kanban boards. |
List what you would need from BIDS-matlab
As discussed in the last meeting (see #59) we will be keeping track of what people would like bids-matlab to do in this issue.
I will keep this top message updated with new ideas from the discussion below.
Moved to their own issue
help with reading BIDS model (see support for "BIDS model" #46)
add basic "write" functions (see adding some "write" functions to bids-matlab #47)
Initialize derivative data set with a copy of the raw data (see Initialize derivative data set with a copy of the raw data #78)
Change handling of multi-session dataset (see Better/proper/cleaner/easier handling of multi-session dataset #63)
better handling of the metadata (see Improve handling of the metadata #79)
The text was updated successfully, but these errors were encountered: