[FieldTrip] Source analysis web_command

Schoffelen, J.M. (Jan Mathijs) janmathijs.schoffelen at donders.ru.nl
Thu Feb 6 08:39:02 CET 2025


Hi Zhen,

Can you please consult the docstring of the ft_postfreesurferscript.sh?

Among others, it mentions:

# This script is adjusted from HCP's FS2CaretConvertRegisterNonlinear
# script, and creates sets of cortical meshes at various resolutions,
# which are surface-registered to a template, and which can be directly
# used for group-level averaging. The results will be stored in the
# directory 'workbench', in the subject-specific freesurfer folder.
#
# Use as:
#
#  ft_postfreesurferscript.sh <DIRNAME> <SUBJECTNAME> <TEMPLATEDIRNAME>
#
# 1. <DIRNAME> points to the directory which contains the subject specific
#     directory that contains the freesurfer results.
# 2. <SUBJECTNAME> is the name of the subject specific directory.
# 3. <TEMPLATEDIRNAME> is the directory that contains the required template
#     meshes.

This is indicating that you need to specify the location of the template meshes as an argument to the script.

Good luck,
Jan-Mathijs



On 4 Feb 2025, at 18:42, Ni, Zhen (NIH/NINDS) [C] <zhen.ni at nih.gov> wrote:

You don't often get email from zhen.ni at nih.gov<mailto:zhen.ni at nih.gov>. Learn why this is important<https://aka.ms/LearnAboutSenderIdentification>
Thank you, Jan-Mathijs,
Now the problem with the path was solved and the scripted was started running. Unfortunately, another problem occurred. The error message showed “Error: name of file: .L.sulc.native.shape.nii; path to file: >>>freesurfer/7.4.1/subjects//sub-001///workbench; file does not exist”

I copied the templates (MNI152….gii and L(R).4(8/164)K.gii) into the /surf (also /workbench, directory). I wonder if the templates should be copied into other directory or there are other problems with “path”.

Zhen

From: fieldtrip <fieldtrip-bounces at science.ru.nl<mailto:fieldtrip-bounces at science.ru.nl>> On Behalf Of Schoffelen, J.M. (Jan Mathijs) via fieldtrip
Sent: Thursday, January 30, 2025 3:19 AM
To: FieldTrip discussion list <fieldtrip at science.ru.nl<mailto:fieldtrip at science.ru.nl>>
Cc: Schoffelen, J.M. (Jan Mathijs) <janmathijs.schoffelen at donders.ru.nl<mailto:janmathijs.schoffelen at donders.ru.nl>>
Subject: [EXTERNAL] Re: [FieldTrip] Source analysis web_command

I agree, you need to sort out your path, and you need to ensure that the shell script has the executable permission flag switched on. Your system administrator/Stackoverflow/google/chatGPT/Deepseek should be able to help you on your way I think.

Good luck,
Jan-Mathijs




On 29 Jan 2025, at 21:07, Ni, Zhen (NIH/NINDS) [C] via fieldtrip <fieldtrip at science.ru.nl<mailto:fieldtrip at science.ru.nl>> wrote:

I’m at the second step for creating a source model for source reconstruction: creation of mesh using HCP workbench. I installed Connectome Workbench on my Mac (M3). In the first step a series of products were generated by Freesurfer. The problem is that they cannot be read by the Workbench. I can open wb_view but when I input the command (ft_freesurferscript.sh) from the terminal, it showed "command cannot be found". I tested other commands from the terminal. Even wb_command does not work. I wonder if the environment setting is not correct.

_______________________________________________
fieldtrip mailing list
https://mailman.science.ru.nl/mailman/listinfo/fieldtrip<https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmailman.science.ru.nl%2Fmailman%2Flistinfo%2Ffieldtrip&data=05%7C02%7Cfieldtrip%40science.ru.nl%7C0d4a440043144ead004b08dd468153b1%7C084578d9400d4a5aa7c7e76ca47af400%7C1%7C0%7C638744243433287237%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=mzo0%2ByZ%2BCEpmkjtrlZR8UXJdsEhfIMaibToZIaVAJyw%3D&reserved=0>
https://doi.org/10.1371/journal.pcbi.1002202<https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdoi.org%2F10.1371%2Fjournal.pcbi.1002202&data=05%7C02%7Cfieldtrip%40science.ru.nl%7C0d4a440043144ead004b08dd468153b1%7C084578d9400d4a5aa7c7e76ca47af400%7C1%7C0%7C638744243433303655%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=V2YEIcSca0mwj%2BCYfjp8OcAGkNfqy5V%2FWALC4Q72SHU%3D&reserved=0>

CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and are confident the content is safe.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20250206/d0fa581a/attachment.htm>


More information about the fieldtrip mailing list