Giter Club home page Giter Club logo

Comments (5)

coalsont avatar coalsont commented on June 9, 2024

read_gifti_file_standalone from the HCP pipelines uses the matlab gifti toolbox (https://www.artefact.tk/software/matlab/gifti/), not this cifti matlab code.

What version of the gifti toolbox do you have installed? I wasn't aware of any version of it that returned the data array itself, rather than a struct/class.

from cifti-matlab.

coalsont avatar coalsont commented on June 9, 2024

Oh, I read that wrong. Apparently the struct field is named "cdata", while the code is expecting "data". I wonder if this is a recent change in the toolbox...

from cifti-matlab.

coalsont avatar coalsont commented on June 9, 2024

I still had it wrong. The documentation of read_gifti_file_standalone:

% Low level reader of GIfTI 1.0 files
% FORMAT this = read_gifti_file(filename, this)
% filename    - XML GIfTI filename
% this        - structure with fields 'metaData', 'label' and 'data'.

It doesn't look like you are supposed to pass a string as the second argument, or in fact use this function directly at all. Just use input = gifti('<filename>'); instead, your data will be in input.cdata. I assume that the use of read_gifti_file_standalone was from your own code, and not from an HCP pipeline script?

Note that [email protected] is the general place to ask help questions about using HCP data (sign up on the bottom right at https://www.humanconnectome.org/contact-us), github issues are meant for bugs in the specific code contained in the given repository.

from cifti-matlab.

Yangguoyuan avatar Yangguoyuan commented on June 9, 2024

Hi Coalsont:
Thanks for your answer. I know the gifti.m can read the shape.gii/surf.gii files. This issue was from FSL PALM. First, I have two groups of xxx.shape.gii metrix files, then I want to do permutation test using fsl PALM. The first step of PALM was read the gifti file in for next statistic calculation. But there return error about reading gifti file using the read_gifti_file.m which is the same as read_gifti_file_standalone
error:
error: /guoyuan_data/software/palm-alpha115/fileio/@gifti/private/read_gifti_file.m at line 17, column 5 error: /guoyuan_data/software/palm-alpha115/fileio/@gifti/gifti.m at line 89, column 22 error: /guoyuan_data/software/palm-alpha115/palm_miscread.m at line 284, column 13 error: /guoyuan_data/software/palm-alpha115/palm_ready.m at line 47, column 10 error: /guoyuan_data/software/palm-alpha115/palm_takeargs.m at line 1644, column 72 error: /guoyuan_data/software/palm-alpha115/palm_core.m at line 33, column 11 error: /guoyuan_data/software/palm-alpha115/palm.m at line 81, column 1

Second, I thought this error was caused by read_gifti_file.m couldn't read my xxx.shape.gii. So I using run the read_gifti_file_standalone.m on my linux system alone. I found this m file couldn't read my xxx.shape.gii file. So I ask question here, I just wonder how using read_gifti_file_standalone.m to read xxx.shape.gii file. Or is my write wrong? So how do you use this m file?

Best
Guoyuan

from cifti-matlab.

coalsont avatar coalsont commented on June 9, 2024

Your error text is missing the actual error message. I don't know what to do in PALM, and very few people will have seen a bug report here. Please use either the FSL list (https://www.jiscmail.ac.uk/cgi-bin/webadmin?A0=fsl , "subscribe" at the top) or the hcp-users list (https://www.humanconnectome.org/contact-us , lower right) to post your problem.

from cifti-matlab.

Related Issues (7)

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.