-
Notifications
You must be signed in to change notification settings - Fork 58
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
Support complex-valued dwidenoising #679
Conversation
It seems like the "combining" step ( I also don't know what EDIT: I just noticed that, in |
So what I ended up doing is passing along the |
Tests are now passing, so at least I didn't break the original workflows. |
Tested on the 0p9mm session of ds004666, and it failed on
EDIT: Ah, I see that this happened because ds004666 uses inheritance for the bval and bvec files. |
I'd prefer to switch to importing SDCFLows's interface instead, TBH.
qsiprep/cli/run.py
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is a great idea - it doesn't require a new commandline flag and is easy to understand
out_file = File(exists=True) | ||
|
||
|
||
class PolarToComplex(CommandLine): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you remember where you found the mrcalc commands? Was it on the mrtrix forum?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I got it from the docstring of mrcalc: https://mrtrix.readthedocs.io/en/latest/reference/commands/mrcalc.html#complex-numbers
Closes #677.
We can probably use ds004666 for testing/validation, though we'll need to add sidecar files with some metadata (PhaseEncodingDirection and TotalReadoutTime).
Changes proposed in this pull request
collect_data
, select "part-mag" or no part entity for "dwi" data.--denoise-method
is set todwidenoise
, (2)--ignore
doesn't includephase
, (3)--denoise-after-combining
is not enabled, and (4) phase data are available.phase
option to--ignore
to explicitly disable complex-valued denoising when phase data are available.init_merge_and_denoise_wf
, uselayout.get_metadata()
to get each DWI file's metadata.