<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">
Hi Zhen,
<div><br>
</div>
<div>Can you please consult the docstring of the ft_postfreesurferscript.sh?</div>
<div><br>
</div>
<div>Among others, it mentions: </div>
<div><br>
</div>
<div>
<div># This script is adjusted from HCP's FS2CaretConvertRegisterNonlinear</div>
<div># script, and creates sets of cortical meshes at various resolutions,</div>
<div># which are surface-registered to a template, and which can be directly</div>
<div># used for group-level averaging. The results will be stored in the </div>
<div># directory 'workbench', in the subject-specific freesurfer folder.</div>
<div># </div>
<div># Use as:</div>
<div>#</div>
<div>#  ft_postfreesurferscript.sh <DIRNAME> <SUBJECTNAME> <TEMPLATEDIRNAME></div>
<div>#</div>
<div># 1. <DIRNAME> points to the directory which contains the subject specific</div>
<div>#     directory that contains the freesurfer results.</div>
<div># 2. <SUBJECTNAME> is the name of the subject specific directory.</div>
<div># 3. <TEMPLATEDIRNAME> is the directory that contains the required template</div>
<div>#     meshes.</div>
<div><br>
</div>
<div>This is indicating that you need to specify the location of the template meshes as an argument to the script. </div>
<div><br>
</div>
<div>Good luck,</div>
<div>Jan-Mathijs</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
<blockquote type="cite">
<div>On 4 Feb 2025, at 18:42, Ni, Zhen (NIH/NINDS) [C] <zhen.ni@nih.gov> wrote:</div>
<br class="Apple-interchange-newline">
<div>
<table border="0" cellspacing="0" cellpadding="0" width="100%" align="left" style="caret-color: rgb(0, 0, 0); font-family: Helvetica; letter-spacing: revert !important; orphans: auto; text-transform: revert !important; widows: auto; word-spacing: revert !important; -webkit-text-stroke-width: 0px; text-decoration: none; aspect-ratio: revert !important; background: revert !important; block-size: revert !important; bottom: revert !important; color: revert !important; color-scheme: revert !important; cursor: revert !important; direction: revert !important; font-size: revert !important; height: revert !important; hyphens: revert !important; line-height: revert !important; margin: revert !important; opacity: revert !important; order: revert !important; outline: revert !important; overflow: revert !important; padding: revert !important; position: revert !important; resize: revert !important; rotate: revert !important; scale: revert !important; tab-size: revert !important; text-align: revert !important; text-indent: revert !important; text-orientation: revert !important; text-overflow: revert !important; text-shadow: revert !important; text-wrap: revert !important; top: revert !important; transition: revert !important; vertical-align: revert !important; visibility: revert !important; white-space: revert !important; word-break: revert !important; writing-mode: revert !important; zoom: revert !important; border: 0px !important; display: table !important; width: 859px; table-layout: fixed !important; float: none !important; border-spacing: 0px !important;">
<tbody style="aspect-ratio: revert !important; background: revert !important; block-size: revert !important; border: revert !important; bottom: revert !important; color: revert !important; color-scheme: revert !important; cursor: revert !important; direction: revert !important; font-size: revert !important; height: revert !important; hyphens: revert !important; letter-spacing: revert !important; line-height: revert !important; margin: revert !important; opacity: revert !important; order: revert !important; outline: revert !important; overflow: revert !important; padding: revert !important; position: revert !important; resize: revert !important; rotate: revert !important; scale: revert !important; tab-size: revert !important; table-layout: revert !important; text-align: revert !important; text-indent: revert !important; text-orientation: revert !important; text-overflow: revert !important; text-shadow: revert !important; text-transform: revert !important; text-wrap: revert !important; top: revert !important; transition: revert !important; vertical-align: revert !important; visibility: revert !important; white-space: revert !important; width: revert !important; word-break: revert !important; word-spacing: revert !important; writing-mode: revert !important; zoom: revert !important; display: block !important;">
<tr style="aspect-ratio: revert !important; background: revert !important; block-size: revert !important; border: revert !important; bottom: revert !important; color: revert !important; color-scheme: revert !important; cursor: revert !important; direction: revert !important; display: revert !important; font-size: revert !important; height: revert !important; hyphens: revert !important; letter-spacing: revert !important; line-height: revert !important; margin: revert !important; opacity: revert !important; order: revert !important; outline: revert !important; overflow: revert !important; padding: revert !important; position: revert !important; resize: revert !important; rotate: revert !important; scale: revert !important; tab-size: revert !important; table-layout: revert !important; text-align: revert !important; text-indent: revert !important; text-orientation: revert !important; text-overflow: revert !important; text-shadow: revert !important; text-transform: revert !important; text-wrap: revert !important; top: revert !important; transition: revert !important; vertical-align: revert !important; visibility: revert !important; white-space: revert !important; width: revert !important; word-break: revert !important; word-spacing: revert !important; writing-mode: revert !important; zoom: revert !important;">
<td valign="middle" width="1px" bgcolor="#A6A6A6" cellpadding="7px 2px 7px 2px" style="aspect-ratio: revert !important; background-image: revert !important; background-position: revert !important; background-size: revert !important; background-repeat: revert !important; background-attachment: revert !important; background-origin: revert !important; background-clip: revert !important; block-size: revert !important; border: revert !important; bottom: revert !important; color: revert !important; color-scheme: revert !important; cursor: revert !important; direction: revert !important; display: revert !important; font-size: revert !important; height: revert !important; hyphens: revert !important; letter-spacing: revert !important; line-height: revert !important; margin: revert !important; opacity: revert !important; order: revert !important; outline: revert !important; overflow: revert !important; position: revert !important; resize: revert !important; rotate: revert !important; scale: revert !important; tab-size: revert !important; table-layout: revert !important; text-align: revert !important; text-indent: revert !important; text-orientation: revert !important; text-overflow: revert !important; text-shadow: revert !important; text-transform: revert !important; text-wrap: revert !important; top: revert !important; transition: revert !important; vertical-align: revert !important; visibility: revert !important; white-space: revert !important; word-break: revert !important; word-spacing: revert !important; writing-mode: revert !important; zoom: revert !important; padding: 7px 2px !important; background-color: rgb(166, 166, 166) !important; width: 0px !important;">
</td>
<td valign="middle" width="100%" bgcolor="#EAEAEA" cellpadding="7px 5px 7px 15px" style="aspect-ratio: revert !important; background-image: revert !important; background-position: revert !important; background-size: revert !important; background-repeat: revert !important; background-attachment: revert !important; background-origin: revert !important; background-clip: revert !important; block-size: revert !important; border: revert !important; bottom: revert !important; color-scheme: revert !important; cursor: revert !important; direction: revert !important; display: revert !important; height: revert !important; hyphens: revert !important; letter-spacing: revert !important; line-height: revert !important; margin: revert !important; opacity: revert !important; order: revert !important; outline: revert !important; overflow: revert !important; position: revert !important; resize: revert !important; rotate: revert !important; scale: revert !important; tab-size: revert !important; table-layout: revert !important; text-indent: revert !important; text-orientation: revert !important; text-overflow: revert !important; text-shadow: revert !important; text-transform: revert !important; text-wrap: revert !important; top: revert !important; transition: revert !important; vertical-align: revert !important; visibility: revert !important; white-space: revert !important; word-break: revert !important; word-spacing: revert !important; writing-mode: revert !important; zoom: revert !important; width: 825px; background-color: rgb(234, 234, 234) !important; padding: 7px 5px 7px 15px !important; font-family: wf_segoe-ui_normal, "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif !important; font-size: 12px !important; font-weight: normal !important; color: rgb(33, 33, 33) !important; text-align: left !important; overflow-wrap: break-word !important;">
<div style="aspect-ratio: revert !important; background: revert !important; block-size: revert !important; border: revert !important; bottom: revert !important; color: revert !important; color-scheme: revert !important; cursor: revert !important; direction: revert !important; display: revert !important; font-size: revert !important; height: revert !important; hyphens: revert !important; letter-spacing: revert !important; line-height: revert !important; margin: revert !important; opacity: revert !important; order: revert !important; outline: revert !important; overflow: revert !important; padding: revert !important; position: revert !important; resize: revert !important; rotate: revert !important; scale: revert !important; tab-size: revert !important; table-layout: revert !important; text-align: revert !important; text-indent: revert !important; text-orientation: revert !important; text-overflow: revert !important; text-shadow: revert !important; text-transform: revert !important; text-wrap: revert !important; top: revert !important; transition: revert !important; vertical-align: revert !important; visibility: revert !important; white-space: revert !important; width: revert !important; word-break: revert !important; word-spacing: revert !important; writing-mode: revert !important; zoom: revert !important;">
You don't often get email from<span class="Apple-converted-space"> </span><a href="mailto:zhen.ni@nih.gov" style="color: blue; text-decoration: underline;">zhen.ni@nih.gov</a>.<span class="Apple-converted-space"> </span><a href="https://aka.ms/LearnAboutSenderIdentification" style="color: revert !important; text-decoration: underline; background: revert !important; direction: revert !important; display: revert !important; font-size: revert !important; opacity: revert !important; rotate: revert !important; scale: revert !important; visibility: revert !important;">Learn
 why this is important</a></div>
</td>
<td valign="middle" align="left" width="75px" bgcolor="#EAEAEA" cellpadding="7px 5px 7px 5px" style="aspect-ratio: revert !important; background-image: revert !important; background-position: revert !important; background-size: revert !important; background-repeat: revert !important; background-attachment: revert !important; background-origin: revert !important; background-clip: revert !important; block-size: revert !important; border: revert !important; bottom: revert !important; color-scheme: revert !important; cursor: revert !important; direction: revert !important; display: revert !important; height: revert !important; hyphens: revert !important; letter-spacing: revert !important; line-height: revert !important; margin: revert !important; opacity: revert !important; order: revert !important; outline: revert !important; overflow: revert !important; position: revert !important; resize: revert !important; rotate: revert !important; scale: revert !important; tab-size: revert !important; table-layout: revert !important; text-indent: revert !important; text-orientation: revert !important; text-overflow: revert !important; text-shadow: revert !important; text-transform: revert !important; text-wrap: revert !important; top: revert !important; transition: revert !important; vertical-align: revert !important; visibility: revert !important; white-space: revert !important; word-break: revert !important; word-spacing: revert !important; writing-mode: revert !important; zoom: revert !important; width: 75px !important; background-color: rgb(234, 234, 234) !important; padding: 7px 5px !important; font-family: wf_segoe-ui_normal, "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif !important; font-size: 12px !important; font-weight: normal !important; color: rgb(33, 33, 33) !important; text-align: left !important; overflow-wrap: break-word !important;">
</td>
</tr>
</tbody>
</table>
<div style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;">
<div class="WordSection1" style="page: WordSection1;">
<div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">Thank you, Jan-Mathijs,<o:p></o:p></div>
<div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">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”<o:p></o:p></div>
<div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"><o:p> </o:p></div>
<div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">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”.<o:p></o:p></div>
<div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"><o:p> </o:p></div>
<div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">Zhen<o:p></o:p></div>
<div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"><o:p> </o:p></div>
<div>
<div style="border-width: 1pt medium medium; border-style: solid none none; border-color: rgb(225, 225, 225) currentcolor currentcolor; border-image: none; padding: 3pt 0in 0in;">
<div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"><b>From:</b><span class="Apple-converted-space"> </span>fieldtrip <<a href="mailto:fieldtrip-bounces@science.ru.nl" style="color: blue; text-decoration: underline;">fieldtrip-bounces@science.ru.nl</a>><span class="Apple-converted-space"> </span><b>On
 Behalf Of<span class="Apple-converted-space"> </span></b>Schoffelen, J.M. (Jan Mathijs) via fieldtrip<br>
<b>Sent:</b><span class="Apple-converted-space"> </span>Thursday, January 30, 2025 3:19 AM<br>
<b>To:</b><span class="Apple-converted-space"> </span>FieldTrip discussion list <<a href="mailto:fieldtrip@science.ru.nl" style="color: blue; text-decoration: underline;">fieldtrip@science.ru.nl</a>><br>
<b>Cc:</b><span class="Apple-converted-space"> </span>Schoffelen, J.M. (Jan Mathijs) <<a href="mailto:janmathijs.schoffelen@donders.ru.nl" style="color: blue; text-decoration: underline;">janmathijs.schoffelen@donders.ru.nl</a>><br>
<b>Subject:</b><span class="Apple-converted-space"> </span>[EXTERNAL] Re: [FieldTrip] Source analysis web_command<o:p></o:p></div>
</div>
</div>
<div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"><o:p> </o:p></div>
<div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">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.<span class="Apple-converted-space"> </span><o:p></o:p></div>
<div>
<div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"><o:p> </o:p></div>
</div>
<div>
<div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">Good luck,<o:p></o:p></div>
</div>
<div>
<div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">Jan-Mathijs<o:p></o:p></div>
</div>
<div>
<div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"><o:p> </o:p></div>
<div>
<div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"><o:p> </o:p></div>
</div>
<div>
<div>
<div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"><br>
<br>
<o:p></o:p></div>
<blockquote style="margin-top: 5pt; margin-bottom: 5pt;">
<div>
<div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">On 29 Jan 2025, at 21:07, Ni, Zhen (NIH/NINDS) [C] via fieldtrip <<a href="mailto:fieldtrip@science.ru.nl" style="color: blue; text-decoration: underline;">fieldtrip@science.ru.nl</a>>
 wrote:<o:p></o:p></div>
</div>
<div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"><o:p> </o:p></div>
<div>
<div>
<div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;">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.<o:p></o:p></div>
</div>
<div>
<div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"> <o:p></o:p></div>
</div>
<div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"><span style="font-size: 10.5pt; font-family: Helvetica, sans-serif;">_______________________________________________<br>
fieldtrip mailing list<br>
</span><a href="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" originalsrc="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" shash="wWsjipP2tgXwLGtt1A7cOt+afeTbQHrFCMhur2JOjHCElwvbwkoFQMGl+jownJvRtoC+LjDeRhCM9kZXEb4L+RhHOQnao60mX29wsn5ylypETYrP+P1UrqoiKdWeHQ4xe5ENh+VUN6IDPC4YFOnNGAQY0DFUvymv+2H1ZNX0YzE=" originalsrc="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" shash="ZLk0PaF0gMm2LawwdkBWfaHvc0FAIPZ9PRfeXqH6t9mI8rRzv1CXZtMoZZyiqcEuJG6GENOZS2BgOEi0FynbmUFO1Ab2m+npd55VxgnJUSoxqRVeFEWZ0Ng8dynWhrLj0QJz68HWYLl0zscEuqZLVs5s+Yx8lFNZ+n/bOXQNhEk=" style="color: blue; text-decoration: underline;"><span style="font-size: 10.5pt; font-family: Helvetica, sans-serif;">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</span></a><span style="font-size: 10.5pt; font-family: Helvetica, sans-serif;"><br>
</span><a href="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" originalsrc="https://doi.org/10.1371/journal.pcbi.1002202" shash="ruiSAGzXCo6nsW/Wf66b0pr3Fk81Q6maN2h9ck5S1PgCVkmWw+51LJ2xZgihMN7lg8Z0IM1K1TbH3zyQEXSuHYCQIGOBv0/hvxR6eBCLZwYp6RlBLYF5X9bJvvP08twPWbA3jcR2mTwdG6RzczQXMvypGvsI1UZfzVQ6IhvQH7c=" originalsrc="https://doi.org/10.1371/journal.pcbi.1002202" shash="R081Cf1X8VMSNahs7XJTVGS5M/q8dasYWxnHLShvfSXv7sDF3OuqFqE7nKwV2GIzB4NL2ecBu26ScGju4MuK1mTWZpO3GsCxR1SowGNCeZCfXldqEWP4Xu0K9ZM8/0b2IQEfn6h87EEIyTGeWgkz6vHawVk2rBKzls2/9HFG7UI=" style="color: blue; text-decoration: underline;"><span style="font-size: 10.5pt; font-family: Helvetica, sans-serif;">https://doi.org/10.1371/journal.pcbi.1002202</span></a><o:p></o:p></div>
</div>
</blockquote>
</div>
<div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"><o:p> </o:p></div>
</div>
</div>
<div style="border: 1pt solid rgb(156, 101, 0); padding: 2pt;">
<div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif; line-height: 12pt; background: rgb(255, 235, 156);">
<span style="font-size: 10pt; color: rgb(156, 101, 0);">CAUTION:</span><span style="font-size: 10pt;"><span class="Apple-converted-space"> </span>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.<o:p></o:p></span></div>
</div>
<div style="margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif;"><o:p> </o:p></div>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</body>
</html>