Giter VIP home page Giter VIP logo

Comments (8)

coalsont avatar coalsont commented on June 14, 2024

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?

from workbench.

smeisler avatar smeisler commented on June 14, 2024

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 sub-047EPKL011005_ses-1_hemi-L_midthickness.surf.gii. If there is a more convenient way for me to share these files let me know.

Thank you for the quick response,
Steven

from workbench.

coalsont avatar coalsont commented on June 14, 2024

Also note that we use 164k surfaces in the HCP pipelines with wb_command and wb_view, without such an error:

https://github.com/Washington-University/HCPpipelines/tree/master/global/templates/standard_mesh_atlases

fsaverage.L_LR.spherical_std.164k_fs_LR.surf.gii

See if that makes it through your code without errors.

from workbench.

coalsont avatar coalsont commented on June 14, 2024

What files get used for the spheres in the resampling command?

from workbench.

smeisler avatar smeisler commented on June 14, 2024

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., resample_surf(surf=surface_fname, resamp_res = 32492, hemisphere='left') only takes in a single surface and resampling resolution argument, so I am not sure what gets used for spheres.

Thank you for linking me to the surface you use. Unfortunately I got the same error

While running:
/rdma/vast-rdma/vast/gablab/smeisler/workbench/bin_rh_linux64/../exe_rh_linux64/wb_command -surface-resample /tmp/Rtmp49kVVm/to_resample.surf.gii /tmp/Rtmp49kVVm/sphereL_158681.surf.gii /tmp/Rtmp49kVVm/sphereL_32492.surf.gii BARYCENTRIC /tmp/Rtmp49kVVm/to_read.surf.gii

ERROR: NAME OF FILE: to_resample.surf.gii
PATH TO FILE: /tmp/Rtmp49kVVm

Vertex used twice in one triangle: triangle 199497, vertex 0Vertex used twice in one triangle: triangle 199498, vertex 0..........

Perhaps it is the writing / reading from tmp that is causing problems (I am on an HPC without root privileges). I will continue to investigate.

Best,
Steven

from workbench.

coalsont avatar coalsont commented on June 14, 2024

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.

from workbench.

glasserm avatar glasserm commented on June 14, 2024

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.

from workbench.

smeisler avatar smeisler commented on June 14, 2024

Seems reasonable, thank you both. I'll close this because it doesn't seem to be an issue with workbench.

from workbench.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.