<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<div id="divtagdefaultwrapper" dir="ltr" style="font-size: 12pt; color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif, Helvetica, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;">
<p style="margin-top:0; margin-bottom:0">Hi Carsten and Johannes</p>
<p style="margin-top:0; margin-bottom:0"><br>
</p>
<p style="margin-top:0; margin-bottom:0">Many thanks for responding, and for developing these great tools!</p>
<p style="margin-top:0; margin-bottom:0"><br>
</p>
<p style="margin-top:0; margin-bottom:0">I'm in the process of acquiring a large diffusion MR dataset from which I can hopefully create an 'averaged' atlas. From your responses I think I have a sense of how to integrate the conductivity tensors derived from
 this atlas with the Fieldtrip FEM pipeline.</p>
<p style="margin-top:0; margin-bottom:0"><br>
</p>
<p style="margin-top:0; margin-bottom:0">But I was wondering if you had any advice on how to compute these conductivity tensors in the first place? From the paper that Carsten sent, It seems like the FDT program within FSL<span> is what I need to compute diffusion
 tensors from the raw diffusion images (steps 1-6 from the FDT user guide <a href="https://fsl.fmrib.ox.ac.uk/fsl/fslwiki/FDT/UserGuide#Processing_pipeline" class="OWAAutoLink" id="LPlnk529292" previewremoved="true">https://fsl.fmrib.ox.ac.uk/fsl/fslwiki/FDT/UserGuide#Processing_pipeline</a>)?
 Seemingly, these diffusion tensors need to then be converted to conductivity tensors - any advice on how to do this (or if you could point me to some example code) would be greatly appreciated. </span></p>
<p style="margin-top:0; margin-bottom:0"><br>
</p>
<p style="margin-top:0; margin-bottom:0">Thanks</p>
<p style="margin-top:0; margin-bottom:0">Ravi</p>
<p style="margin-top:0; margin-bottom:0"><br>
<span></span></p>
<div id="LPBorder_GT_15414382644970.723514946411248" style="margin-bottom: 20px; overflow: auto; width: 100%; text-indent: 0px;">
<table id="LPContainer_15414382644950.9956431036316657" role="presentation" cellspacing="0" style="width: 90%; background-color: rgb(255, 255, 255); position: relative; overflow: auto; padding-top: 20px; padding-bottom: 20px; margin-top: 20px; border-top: 1px dotted rgb(200, 200, 200); border-bottom: 1px dotted rgb(200, 200, 200);">
<tbody>
<tr valign="top" style="border-spacing: 0px;">
<td id="TextCell_15414382644960.2368991619600882" colspan="2" style="vertical-align: top; position: relative; padding: 0px; display: table-cell;">
<div id="LPRemovePreviewContainer_15414382644960.10547270221878802"></div>
<div id="LPTitle_15414382644960.9727288617408392" style="top: 0px; color: rgb(0, 120, 215); font-weight: 400; font-size: 21px; font-family: wf_segoe-ui_light, "Segoe UI Light", "Segoe WP Light", "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; line-height: 21px;">
<a id="LPUrlAnchor_15414382644960.5199188323612385" href="https://fsl.fmrib.ox.ac.uk/fsl/fslwiki/FDT/UserGuide#Processing_pipeline" target="_blank" style="text-decoration: none;">FDT/UserGuide - FslWiki - University of Oxford</a></div>
<div id="LPMetadata_15414382644970.535012123375781" style="margin: 10px 0px 16px; color: rgb(102, 102, 102); font-weight: 400; font-family: wf_segoe-ui_normal, "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; font-size: 14px; line-height: 14px;">
fsl.fmrib.ox.ac.uk</div>
<div id="LPDescription_15414382644970.856036196272252" style="display: block; color: rgb(102, 102, 102); font-weight: 400; font-family: wf_segoe-ui_normal, "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; font-size: 14px; line-height: 20px; max-height: 100px; overflow: hidden;">
Eddy Current Correction. Eddy currents in the gradient coils induce (approximate) stretches and shears in the diffusion weighted images. These distortions are different for different gradient directions.</div>
</td>
</tr>
</tbody>
</table>
</div>
<br>
<p></p>
<p style="margin-top:0; margin-bottom:0"><span><br>
</span></p>
<p style="margin-top:0; margin-bottom:0"><span>Thanks again<br>
Ravi</span></p>
<p style="margin-top:0; margin-bottom:0"><span><br>
</span></p>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> fieldtrip <fieldtrip-bounces@science.ru.nl> on behalf of Johannes Vorwerk <j.vorw01@gmail.com><br>
<b>Sent:</b> Monday, October 29, 2018 10:14:16 AM<br>
<b>To:</b> FieldTrip discussion list<br>
<b>Subject:</b> Re: [FieldTrip] Incorporating White Matter conductivity anisotropy into FEM simbio</font>
<div> </div>
</div>
<meta content="text/html; charset=utf-8">
<div class="" style="word-wrap:break-word">Dear Ravi,
<div class=""><br class="">
</div>
<div class="">as Carsten already said, calculating FEM with anisotropic conductivities is not directly supported by the FieldTrip-SimBio implementation. However, if you are willing to invest a bit of time it is possible to work around this.</div>
<div class=""><br class="">
</div>
<div class="">The „only“ thing that needs to be changed is the calculation of the FEM stiffness matrix, which is performed by the routine „calc_stiffness_matrix_val“ in the function sb_calc_stiff (usually called from ft_prepare_headmodel). The problem is that
 FieldTrip does not support anisotropic conductivities, so that you would have to call calc_stiffness_matrix_val directly. You can see the correct call in sb_calc_stiff. For anisotropic conductivities you have to replace the input „cond“ by a #elements x 6
 matrix containing your anisotropic conductivities in the format "xx yy zz xy yz zx“. If you now follow the normal FieldTrip-SimBio workflow using the resulting stiffness matrix, you will get results for anisotropic conductivities.</div>
<div class=""><br class="">
</div>
<div class="">Best,</div>
<div class=""><span class="x_Apple-tab-span" style="white-space:pre"></span>Johannes</div>
<div class=""><br class="">
</div>
<div>
<blockquote type="cite" class="">
<div class="">Am 29.10.2018 um 12:31 schrieb Carsten Wolters <<a href="mailto:carsten.wolters@uni-muenster.de" class="OWAAutoLink" id="LPlnk144193" previewremoved="true">carsten.wolters@uni-muenster.de</a>>:</div>
<br class="x_Apple-interchange-newline">
<div class="">
<div class="x_moz-cite-prefix" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; background-color:rgb(255,255,255)">
Dear Ravi,<br class="">
<br class="">
1) You can use the pure SimBio-code from<span class="x_Apple-converted-space"> </span><br class="">
<a class="x_moz-txt-link-freetext OWAAutoLink" href="https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.mrt.uni-jena.de%2Fsimbio%2Findex.php%2FMain_Page&data=02%7C01%7Crdm146%40newark.rutgers.edu%7Cfd39adb746104deddfa808d63da91b81%7Cb92d2b234d35447093ff69aca6632ffe%7C1%7C0%7C636764193863059067&sdata=cFED89%2BXMUfro9URWv5pWzGC5SnzTqEHT%2FmXd%2F2eB8Q%3D&reserved=0" originalsrc="https://www.mrt.uni-jena.de/simbio/index.php/Main_Page" shash="E+sEUfVHsMIGw5FOeiht+gCCWfg6jplHhvLsF4T087oniMFBkYRLSgzGVoyuAWFokF6QyNcBGpl5bbTkBMUWixu7iNa8dgcF4fPtq0kxVDz+MGMOwt9cL1U5tI5+eVhH6dyyyNiKGN5PEMI3clCxn72Y8w3E7sw+48UcBXg9pm8=" id="LPlnk649518" previewremoved="true">https://www.mrt.uni-jena.de/simbio/index.php/Main_Page</a><br class="">
to treat WM anisotropy.<br class="">
While it would in principle also be possible to use anisotropic conductivities with FieldTrip-SimBio,<span class="x_Apple-converted-space"> </span><br class="">
this is currently not implemented using ft_prepare_headmodel. Johannes (in CC), who implemented<span class="x_Apple-converted-space"> </span><br class="">
Fieldtrip-SimBio, answered a same question by Junjie Wu in March 2018:<span class="x_Apple-converted-space"> </span><br class="">
"Depending on your matlab skills and your available time, I could help you to give it a<span class="x_Apple-converted-space"> </span><br class="">
try though. It should be possible with using some direct function calls instead of the high-level fieldtrip-functions."<br class="">
<br class="">
2) We recommend<span class="x_Apple-converted-space"> </span><br class="">
<a class="x_moz-txt-link-freetext OWAAutoLink" href="https://na01.safelinks.protection.outlook.com/?url=http:%2F%2Fwww.sci.utah.edu%2F~wolters%2FPaperWolters%2F2012%2FRuthottoEtAl_PhysMedBiol_2012.pdf&data=02%7C01%7Crdm146%40newark.rutgers.edu%7Cfd39adb746104deddfa808d63da91b81%7Cb92d2b234d35447093ff69aca6632ffe%7C1%7C0%7C636764193863069076&sdata=tYM5Oabmkx3Gr4R0I1Wqauly3lVENtp1H%2Fnebvcl0pw%3D&reserved=0" originalsrc="http://www.sci.utah.edu/~wolters/PaperWolters/2012/RuthottoEtAl_PhysMedBiol_2012.pdf" shash="Sz3Mz6rgQT4j0kJTNIrh1qvaGkhKz2IJJ+KHg4VYldhiXQ7fM+z6RsAzmMwOpKEVD//huxhUqNmOE3OYdzq+SDHvQMAQYUG0VxVbdxRqkdkww+DvYrrmdXf/IzqQSuYyA29cYI4hs6QtJXugo1JDXpodq7CCmQzeA/dAcocsXK8=" id="LPlnk912676" previewremoved="true">http://www.sci.utah.edu/~wolters/PaperWolters/2012/RuthottoEtAl_PhysMedBiol_2012.pdf</a><br class="">
on individual data. I could imagine that an atlas does a reasonable job w.r.t. the main<br class="">
bigger fiber tracts such as corpus callosum or pyramidal tracts, but that the finer details<br class="">
in the cortices are individual. We always measure T1, T2 and DTI from each subject<br class="">
and I personally do not have experience with such a group-level anisotropy compared<span class="x_Apple-converted-space"> </span><br class="">
to the individual one. Might be interesting to hear from others what they think!?<br class="">
<br class="">
BR<br class="">
   Carsten<br class="">
<br class="">
<br class="">
<br class="">
Am 25.10.18 um 23:05 schrieb Ravi Mill:<br class="">
</div>
<blockquote type="cite" class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; background-color:rgb(255,255,255)">
<div id="x_divtagdefaultwrapper" dir="ltr" class="" style="font-family: Helvetica, Helvetica, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;">
<div class="" style="margin-top:0px; margin-bottom:0px">Dear Fieldtrippers</div>
<div class="" style="margin-top:0px; margin-bottom:0px"><br class="">
</div>
<div class="" style="margin-top:0px; margin-bottom:0px">I have applied the FEM simbio head modeling pipeline implemented in Fieldtrip to my EEG data. <span class="">My understanding is that this pipeline assumes isotropic conductivities for 5 head compartments
 (as specified by cfg.conductivity in ft_prepare_headmodel). </span>After reading some papers (e.g. Vorwerk et al 2014 <a href="https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdoi.org%2F10.1016%2Fj.neuroimage.2014.06.040&data=02%7C01%7Crdm146%40newark.rutgers.edu%7Cfd39adb746104deddfa808d63da91b81%7Cb92d2b234d35447093ff69aca6632ffe%7C1%7C0%7C636764193863069076&sdata=GbsiChTzmUZMEBsH1k44etRdVJUcUQ6SskLJtnzkbSk%3D&reserved=0" originalsrc="https://doi.org/10.1016/j.neuroimage.2014.06.040" shash="ErJITSbdBRFdy7X7vIrKDZMlbdKbOko45+mw+79EFXIc61LCdXwAYEmfPba55QzS1C4V0mf0ZiyJZqO3Khf8+KTgp3xaHd5/13wt9mp4gG14rftp8Pi4E7TndLevMu5608yiRFyLV4sceJtVKvtJS6soMOCKEflB/2KOkSmS94o=" class="x_OWAAutoLink" id="LPlnk216235" previewremoved="true">https://doi.org/10.1016/j.neuroimage.2014.06.040</a>),
 it seems like incorporating white matter conductivity anisotropy has a relatively small albeit significant effect on the source solution. I am interested in comparing FEM results when treating white matter as anisotropic. <span class="" style="font-size:12pt">My
 questions are as follows:</span></div>
<div class="" style="margin-top:0px; margin-bottom:0px"><span class="" style="font-size:12pt"><br class="">
</span></div>
<ol class="" style="margin-bottom:0px; margin-top:0px">
<li class="">Is there a way to implement the FEM simbio head model whilst treating WM as anisotropic within Fieldtrip? If so, how would one do this (or are there any resources available that demonstrate this)?</li><li class="">From previous papers and some simbio documentation (<a href="https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.mrt.uni-jena.de%2Fsimbio%2Findex.php%2FSIMBIO%2FReleasenotes%2FExamples&data=02%7C01%7Crdm146%40newark.rutgers.edu%7Cfd39adb746104deddfa808d63da91b81%7Cb92d2b234d35447093ff69aca6632ffe%7C1%7C0%7C636764193863079077&sdata=LLPhLC8V85SmMAJbnV%2F15%2Bcs366ek6FQbx81p25mwqA%3D&reserved=0" originalsrc="https://www.mrt.uni-jena.de/simbio/index.php/SIMBIO/Releasenotes/Examples" shash="OUH/nWbFzKSSyhH1mGYHm/Ks7+HhHc0oJYAba6xnYl/D0Lz+0SoPitoZ6qnSF84rCNelMyF4xr5GFhCns8QWMkgFj+nfTdGyYBLlo/tt4bJ5UreViLwKIjH9KDa6xhhb9JApZJurR40AEpox0ydsYvSba3GJQ9nBXe/lMQvtq/c=" class="x_OWAAutoLink" id="LPlnk493580" previewremoved="true">https://www.mrt.uni-jena.de/simbio/index.php/SIMBIO/Releasenotes/Examples</a>)
 it seems like diffusion MRI data is required to calculate the WM conductivity for each individual subject. I only have T1 and T2 scans for my subjects. So would it be possible to use WM anisotropic information obtained from some kind of diffusion MRI group
 average/atlas instead (accepting some loss in subject-level precision)? If so, does such a group average/atlas exist?</li></ol>
<br class="">
<div class="" style="margin-top:0px; margin-bottom:0px">Any help would be greatly appreciated!</div>
<div class="" style="margin-top:0px; margin-bottom:0px"><br class="">
</div>
<div class="" style="margin-top:0px; margin-bottom:0px">Thanks</div>
<div class="" style="margin-top:0px; margin-bottom:0px">Ravi</div>
<br class="">
<p class="" style="margin-top:0px; margin-bottom:0px"><span class="" style="font-size:12pt"></span></p>
<div class="">        </div>
</div>
<br class="">
<fieldset class="x_mimeAttachmentHeader"></fieldset>
<pre class="x_moz-quote-pre">_______________________________________________
fieldtrip mailing list
<a class="x_moz-txt-link-freetext OWAAutoLink" href="https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmailman.science.ru.nl%2Fmailman%2Flistinfo%2Ffieldtrip&data=02%7C01%7Crdm146%40newark.rutgers.edu%7Cfd39adb746104deddfa808d63da91b81%7Cb92d2b234d35447093ff69aca6632ffe%7C1%7C0%7C636764193863089093&sdata=M3y4f%2BGg7MpJXOr%2FF8DC9cTM0dUb2wS9hRyyEffxuRw%3D&reserved=0" originalsrc="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" shash="pPHM9u8IfNE5eD0ABUjay/tj2b9IR/dygfWL+wbRcsanHtS1gHX52DIwic/+ugYnKj2JFA9RUtv0oseu6l0ipjjoe/sTbYZn3e89i+miX+Vam1HO8v3r9X6buxNm7cWfyqt+eP5dpb1bvpsn9TjiVFvc2MajFkKJTnt3orv8S7Q=" id="LPlnk502253" previewremoved="true">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a>
<a class="x_moz-txt-link-freetext OWAAutoLink" href="https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdoi.org%2F10.1371%2Fjournal.pcbi.1002202&data=02%7C01%7Crdm146%40newark.rutgers.edu%7Cfd39adb746104deddfa808d63da91b81%7Cb92d2b234d35447093ff69aca6632ffe%7C1%7C0%7C636764193863089093&sdata=1nMk28PGgmZtyX1M5Rl2wDkhBMv2vSXknpWYm0TGX9w%3D&reserved=0" originalsrc="https://doi.org/10.1371/journal.pcbi.1002202" shash="sT0FwQGOG4qYroacDBDyMzwAUKLaXnNdJUqQgEbQ5tr3jLi1XhpCnshXRdaNVm1YZ5LColGmQfm7X7Ne2JAmICUL5r48LEfOjO1H+xLbfTtdtyd1iE5S7snZpKZFDAPNWXj3BbI8k2+ib27GY4C2hhxtqL1Xt9RAAAUkYysjNrM=" id="LPlnk23908" previewremoved="true">https://doi.org/10.1371/journal.pcbi.1002202</a>
</pre>
</blockquote>
<br class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; background-color:rgb(255,255,255)">
<br class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; background-color:rgb(255,255,255)">
<pre class="x_moz-signature" cols="72" style="font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; word-spacing:0px; background-color:rgb(255,255,255)">-- 
Prof. Dr.rer.nat. Carsten H. Wolters
University of Münster
Institute for Biomagnetism and Biosignalanalysis
Malmedyweg 15
48149 Münster, Germany

Phone: 
+49 (0)251 83 56904
+49 (0)251 83 56865 (secr.)

Fax: 
+49 (0)251 83 56874

Email: <a class="x_moz-txt-link-abbreviated OWAAutoLink" href="mailto:carsten.wolters@uni-muenster.de" id="LPlnk155336" previewremoved="true">carsten.wolters@uni-muenster.de</a>
Web: <a class="x_moz-txt-link-freetext OWAAutoLink" href="https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcampus.uni-muenster.de%2Fbiomag%2Fdas-institut%2Fmitarbeiter%2Fcarsten-wolters%2F&data=02%7C01%7Crdm146%40newark.rutgers.edu%7Cfd39adb746104deddfa808d63da91b81%7Cb92d2b234d35447093ff69aca6632ffe%7C1%7C0%7C636764193863099102&sdata=Xuoiy%2FV4Vfti4QM2bSxaitn%2FxnJeG3vG8UaWnd5XMXI%3D&reserved=0" originalsrc="https://campus.uni-muenster.de/biomag/das-institut/mitarbeiter/carsten-wolters/" shash="samsgyE4Lcw534qdXSIyR66O0j1LTlrvMHX+/IXV+hpERgCM4YC9XoXhviN0V4zejBqo2kWXYrQOh8O/eMH+eDP+FAuHfMrvI+vvrLiUk081U2oRhimpLiF+zmi8muptZQmo13R1Jc0C41vUTtSBM17dYq6V4hXGHJgZ2I3mSpA=" id="LPlnk782212" previewremoved="true">https://campus.uni-muenster.de/biomag/das-institut/mitarbeiter/carsten-wolters/</a></pre>
</div>
</blockquote>
</div>
<br class="">
</div>
</div>
</body>
</html>