vistalab / vistasoft

VISTASOFT is the main software repository of the VISTA lab at Stanford University.
http://vistalab.stanford.edu
148 stars 141 forks source link

fs_labelFileToNiftiRoi #213

Closed rosemary-le closed 7 years ago

rosemary-le commented 7 years ago

I get the following error message while attempting to run fs_labelFileToNiftiRoi:

error while loading shared libraries: libtix8.1.8.4.so

When I google this error message, I get some threads dating back to ~2005, which seem to be a bit outdated. Has this been an error anyone has encountered more recently?

JWinawer commented 7 years ago

I never ran this function before. I tried just now. Many calls produced errors, but this call ran without error for me:

% Get freesurfer directory fssubjectsdir = getenv('SUBJECTS_DIR');

% Download ernie freesurfer directory if needed forceOverwrite = false; dFolder = mrtInstallSampleData('anatomy/freesurfer', 'ernie', ... fssubjectsdir, forceOverwrite);

labelFileName = fullfile(dFolder, 'label', 'lh.V1.label'); niftiRoiName = 'lh_V1'; fs_labelFileToNiftiRoi('ernie', labelFileName,niftiRoiName, 'lh',[],0);

I suppose it might help to run the same code to debug. In any case, I am not familiar with your library error but it looks like a freesurfer problem.

Separately, the function nifti2ROI.m may do what you want, at least if you convert the mgz file to nifti.

And in the branch jonTutorials, you can just use the function loadROI - it should work with nifti label files. This branch will be soon be merged with the master branch.

-J

On Sun, Dec 4, 2016 at 9:15 PM, Rosemary Le notifications@github.com wrote:

I get the following error message while attempting to run fs_labelFileToNiftiRoi:

error while loading shared libraries: libtix8.1.8.4.so

When I google this error message, I get some threads dating back to ~2005, which seem to be a bit outdated. Has this been an error anyone has encountered more recently?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/vistalab/vistasoft/issues/213, or mute the thread https://github.com/notifications/unsubscribe-auth/ACBX3t9ddL-6Vj1mS1syTV4eMjgdy_XFks5rE3O3gaJpZM4LDyjQ .

-- Jonathan Winawer Assistant Professor of Psychology and Neural Science

New York University 6 Washington Place New York, NY, 10003 (212) 998-7922 (phone) (212) 995-4018 (fax) jonathan.winawer@nyu.edu http://psych.nyu.edu/winawer/

rosemary-le commented 7 years ago

Thank you Jon. Indeed, the code above also runs for me, so I shall use this to debug what is happening in my libraries.

I would use nifti2ROI, but the specific ROIs I would like to use are .label files (and there does not seem to be a nifti version).

Thank you for the tip regarding jonTutorials -- all the more reason to try it soon.

Rosemary

JWinawer commented 7 years ago

Not sure whether this issue is solved or not, but given that the sample code above ran in Dec, 2016, and that it still runs successfully now (for me), I will close the issue.

(At some point I will also add a freesurfer test function to the validation code.)

As usual, please reopen if there are continued problems.