-
Notifications
You must be signed in to change notification settings - Fork 125
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
More flexible multi-echo support #384
Comments
There is already an open issue about this #346. I had messed around with a branch earlier this year that adds a flag to split all echoes, allowing template style naming per each echo. When I get some time, I'll try to get it in working shape. What does your heuristic / series info look like? There may be a way to work around this. |
This is what I tried. For now, I am just using a shell script to convert. EDIT: Using |
Until a more permanent solution is found to support for echo naming in the heuristic file, something you can do is modify convert.py. Where it says:
Replace it with:
I think it will do what you want, without breaking anything else, but I haven't tested it... |
I am using a docker image, and I don't know how to edit that file in the image. Until proper multi-volume support, I will just use a post-processing shell script, since it's a minor name change. |
Summary
I am trying to convert fieldmap data with a phase sequence with 2 echo times and a magnitude sequence with 2 echo times. The latest release claims to support multi-echo conversion, so I looked into how to build a heuristic that takes advantage of this. But looking at #293, it looks like convert.py tries to take care of converting multi-echo sequences into BIDS format.
So I just ran heudiconv on my data, but the result is slightly wrong. The correct BIDS format should be
...magnitude1
,...magnitude2
,...phase1
,...phase2
, but heudiconv gives...magnitude-1
,...phase-1
, etc.Looking at the multi-echo handling in #293 closely, it seems incredibly hacky to try supporting every possible multi-echo image types then fall back to an inflexible way of just appending the suffix. This seems even more problematic if you consider that BIDS is an evolving format that may add more variations in the future.
Keeping with the point of heuristics-based conversion, multi-echo handling should also use templates to let the user decide how to format the output files.
Platform details:
Choose one:
The text was updated successfully, but these errors were encountered: