-
Notifications
You must be signed in to change notification settings - Fork 62
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
"-surface-resample" cannot resample an input surface that is very-high resolution #59
Comments
That message is in the surface file reading code. Can you provide a file that causes such an error, so we can check whether the file truly has zeros in the triangle array? |
Yes, surface files are in this zipped folder (along with other relevant fmriprep outputs): https://drive.google.com/file/d/1m2bPZGHVwPN8l9Aehx2Hjhf2PBC5p1Tv/view The file I was working on specifically is Thank you for the quick response, |
Also note that we use 164k surfaces in the HCP pipelines with wb_command and wb_view, without such an error: fsaverage.L_LR.spherical_std.164k_fs_LR.surf.gii See if that makes it through your code without errors. |
What files get used for the spheres in the resampling command? |
That is a good question, I have made the developers of ciftiTools aware of this, and it is possible that it is an error in how their wrapper function handles files. Their function e.g., Thank you for linking me to the surface you use. Unfortunately I got the same error
Perhaps it is the writing / reading from Best, |
158681 is the resolution of your surfaces, not of the sphere I pointed you to, so I don't know why the wrapper is running that command, or what to_resample.surf.gii is supposed to be a copy of. I would guess that it is internally finding the sphere files associated with the subject, and therefore can't resample anything that doesn't match that subject's resolution anyway. |
I wonder if it would be better to try using the wb_command -surface-resample directly? While I met the author of ciftitools once, we don't have an established relationship with her to support her tools. Also it's entirely possible that the wrappers are not doing what we would recommend in any case. |
Seems reasonable, thank you both. I'll close this because it doesn't seem to be an issue with workbench. |
Hello,
This issue was mentioned in mandymejia/ciftiTools#34 .
Background
I have fMRIPrep (21.0.0) cifti outputs (using the
91k
resolution). All surface/cifti files can be found here. They are from a public openneuro dataset (ds003129). I am trying to resample the subject's high density surface (~150k vertices) to the template space that the cifti file corresponds with (~32k vertices).The problem
"-surface-resample" crashes when trying to resample the subject's high-resolution surface file (
sub-047EPKL011005_ses-1_hemi-L_midthickness.surf.gii
) to the template resolution (tpl-fsLR_den-32k_hemi-L_midthickness.surf.gii
). I used ciftiTool's (https://github.com/mandymejia/ciftiTools) wrapper functionresample_surf
, which calls workbench (1.5.0)-surface-resample
and got the following error:Error
For every triangle in the surface I get the following error (I paste just a portion of the error message below);
triangle 317355, vertex 0Vertex used twice in one triangle: triangle 317356, vertex 0Vertex used twice in one triangle: triangle 317356, vertex 0Vertex used twice in one triangle: triangle 317357, vertex 0Vertex used twice in one triangle: triangle 317357, vertex 0...
Please let me know if there is any information I can provide to help describe this problem better.
Thank you,
Steven
The text was updated successfully, but these errors were encountered: