-
Notifications
You must be signed in to change notification settings - Fork 36
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
Pass different arguments to spec2nii plugin depending on run item #156
Comments
Do you mean you want to pass the See: |
Yes, exactly. I would love to be able to pass different values for the Example: Until then, would you agree that setting up two different bidsmaps for the two types of series could work, where each bidsmap has the required set of spec2niibids plugin options (one with |
Ok, I never thought about such a use case. It seems a bit tricky to implement in a consistent / friendly way, but I'll think about it |
Thank you so much for the quick response and engagement! |
Two bidsmaps would work, but it is a bit clumsy / unhandy (you need to exclude part of the data in one bidsmap, and the other part in the other bidsmap) |
Thanks! I agree that an Options table would be the perfect solution to set arguments specific for particular run items, but I understand that would be substantial amount of work. I'm reluctant to mess with the bidscoin code, so I think I'll just set up two bidsmaps (one exclusively for the MEGA-PRESS data) and deal with the clunkiness of it. I don't mind calling bidscoiner twice in a script. :) |
Btw, I don't have much knowledge of or experience with MRS data, I just wrote the spec2nii plugin for a colleague of mine, who was pooling Twix, SPAR/SDAT and P-file data. The spec2nii app, however, supports more datatypes, and I guess I could easily add those to the plugin, if anyone is interested |
If |
Thank you for offering. I'd be very interested in the data/list and various DICOM flavors that spec2nii supports, too. Dynamic header reading would be absolutely outstanding, but I don't think you want to open that can of worms. For starters, MRS header fields are not standardized across vendors at all (which is why NIfTI-MRS was developed in the first place). The fields relevant to pass to the |
I would leave it up to the user to add the dynamic field. For instance, it could look like this (
Or even:
Where the regexp (see also: https://bidscoin.readthedocs.io/en/stable/bidsmap.html#special-bidsmap-features) |
That would be fantastic! |
It is not trivial to implement run-specific plugin options, and I think the complications for both myself and the users would not be worth it. I am willing to make the plugin options dynamic, that would be easier, but I would first like to know if that would solve real-world use cases. Feel to re-open this issue if you have such a use case or if you have another suggestion |
I have re-opened this old issue because the architecture of bidscoin has improved significantly in the last year, allowing me to implement your feature request with much less effort. So my question to you is, is it still relevant/needed or? |
Is your feature request related to a problem? Please describe.
Different MRS acquisitions may require passing optional arguments to the spec2nii plugin:
For example, some spectral editing (or other multi-dimensional) data may require the transients to be reshaped with the
-s
flag.Describe the solution you'd like
I'd like to be able to pass arguments to the spec2nii plugin depending on the run item.
Describe alternatives you've considered
I could probably design two different bidsmaps that specifically pick up the different MRS data types, and specify options separately.
The text was updated successfully, but these errors were encountered: