You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dear fmriprep team,
we are currently encountering the same issue. All cifti-reading programs (Connectome workbench, nibabel, etc.) are indicating a mismatch between the func/dtseries.nii resolution and the anat/.surf.gii files.
You can see two example errors below (one is posted on the github page of pycortex). However, my error resembles this neurstars post: https://neurostars.org/t/fmriprep-cifti-output-surface-dimension-resampling/21344/2
Thanks,
Chris
fig, axes = plt.subplots(1, 1)
cifti = nb.load('D:\\Data\\MyStudy\\derivates\\fmriprep-preprocessing\\sub-011\\ses-01\\func\\sub-011_ses-01_task-rest_run-1_space-fsLR_den-91k_bold.dtseries.nii')
cifti_data = cifti.get_fdata(dtype=np.float32)
cifti_hdr = cifti.header
nifti_hdr = cifti.nifti_header
axes = [cifti_hdr.get_axis(i) for i in range(cifti.ndim)]
_ = nlp.plot_surf('D:\\Data\\MyStudy\\derivates\\fmriprep-preprocessing\\sub-011\\anat\\sub-011_run-01_hemi-L_inflated.surf.gii', surf_data_from_cifti(cifti_data, axes[1], 'CIFTI_STRUCTURE_CORTEX_LEFT').mean(axis=1) ,cmap='plasma')
vol, left, right = decompose_cifti(cifti)
Traceback (most recent call last):
File "C:\Users\CHRIST~1.SCH\AppData\Local\Temp/ipykernel_14584/1497458682.py", line 7, in <module>
_ = nlp.plot_surf('D:\\Data\\MyStudy\\derivates\\fmriprep-preprocessing\\sub-011\\anat\\sub-011_run-01_hemi-L_inflated.surf.gii', surf_data_from_cifti(cifti_data, axes[1], 'CIFTI_STRUCTURE_CORTEX_LEFT').mean(axis=1) ,cmap='plasma')
File "C:\Users\Chris\.conda\envs\fMRIAnalysis\lib\site-packages\nilearn\plotting\surf_plotting.py", line 233, in plot_surf
raise ValueError('The surf_map does not have the same number '
ValueError: The surf_map does not have the same number of vertices as the mesh.
The text was updated successfully, but these errors were encountered:
The .surf.gii files are just GIFTI translations of the individual subject surfaces. The CIFTI files are in the fsLR template space. They can be plotted on other surfaces from that space. You should be able to Google around for Conte69 surfaces.
What happened?
Dear fmriprep team,
we are currently encountering the same issue. All cifti-reading programs (Connectome workbench, nibabel, etc.) are indicating a mismatch between the func/dtseries.nii resolution and the anat/.surf.gii files.
You can see two example errors below (one is posted on the github page of pycortex). However, my error resembles this neurstars post:
https://neurostars.org/t/fmriprep-cifti-output-surface-dimension-resampling/21344/2
Thanks,
Chris
What command did you use?
What version of fMRIPrep are you running?
nipreps/fmriprep:latest
How are you running fMRIPrep?
Docker
Is your data BIDS valid?
Yes
Are you reusing any previously computed results?
No
Please copy and paste any relevant log output.
Additional information / screenshots
Following error on pycortex is probably related with this issue: gallantlab/pycortex#428
The text was updated successfully, but these errors were encountered: