-
Notifications
You must be signed in to change notification settings - Fork 10
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
FIX: --cifti-output
missing required space
#212
Conversation
@madisoth could you verify this patch fixes your issue? I pushed a docker image with this patch to |
Hi @mgxd, I got a test subject processed and the cifti output looks good. But I did hit a separate error; think it's just this fMRIPlot call needs to be updated to work with niworkflows after the bump to 1.5.3 File: /out/sub-<SUBJECT>/log/20220429-144654_9d9649e2-9e55-4899-9115-d4936fd67b2d/crash-20220429-203608-tmadison-conf_plot-8d2bbe66-b1cb-4484-9fc2-3c581aedf9e0.txt
Working Directory: /work/nibabies_22_0_wf/single_subject_<SUBJECT>_wf/func_preproc_ses_<SESSION>_task_auditory_run_01_wf/carpetplot_wf/conf_plot
Inputs:
confounds_file:
confounds_list: [('global_signal', None, 'GS'), ('csf', None, 'GSCSF'), ('white_matter', None, 'GSWM'), ('std_dvars', None, 'DVARS'), ('framewise_displacement', 'mm', 'FD')]
in_func:
in_mask:
in_segm:
str_or_tuple:
tr: 1.2
Traceback (most recent call last):
File "/opt/conda/lib/python3.8/site-packages/nipype/pipeline/plugins/multiproc.py", line 67, in run_node
result["result"] = node.run(updatehash=updatehash)
File "/opt/conda/lib/python3.8/site-packages/nipype/pipeline/engine/nodes.py", line 516, in run
result = self._run_interface(execute=True)
File "/opt/conda/lib/python3.8/site-packages/nipype/pipeline/engine/nodes.py", line 635, in _run_interface
return self._run_command(execute)
File "/opt/conda/lib/python3.8/site-packages/nipype/pipeline/engine/nodes.py", line 741, in _run_command
result = self._interface.run(cwd=outdir)
File "/opt/conda/lib/python3.8/site-packages/nipype/interfaces/base/core.py", line 428, in run
runtime = self._run_interface(runtime)
File "/opt/conda/lib/python3.8/site-packages/nibabies/interfaces/confounds.py", line 413, in _run_interface
fig = fMRIPlot(
TypeError: __init__() got an unexpected keyword argument 'mask_file' |
oof, yes niworkflow 1.5.x series included some API breaking changes. I'm going to try to get 22.0.x in a stable state, and then start on 22.1.x to alleviate this. I've backported an older version of fMRIPlot directly into the code - I've pushed it to this branch https://github.com/nipreps/nibabies/tree/docker/fix-cifti-output You can either:
Sorry for this hassle, and thanks for helping debug. |
6f32234
to
c67359c
Compare
--cifti-output
to testing--cifti-output
missing required space
following up - did the latest patch end up fixing the error you ran into @madisoth? |
Getting this error now-- just need to check whether sort_rows is str I think? (see above)
|
@mgxd the plots issue looks good now, but now I see the medial walls aren't masked out in the 91k dtseries outputs. If I run
but I would expect this:
In those BOLD dtseries.nii files the values of the medial wall grayordinates are all zeroes though. |
Ok, thank you for the diligence in getting this in shape! This just goes to show how much a regression test on the CIFTI outputs is needed. Now I am not sure if we ever were producing HCP compatible CIFTIs (well, at least since porting over the dcan-infant-pipeline alignment)... I've pushed a new patch, I've tested it locally and everything looks good, but will hold off on merging this until you confirm. |
Because we are working with very downsampled data, functional segmentation is very unreliable
Co-authored-by: Thomas Madison <56737848+madisoth@users.noreply.github.com>
Addressing #211 - first step will be to add
--cifti-output
to circle testing