<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi Laurent,</p>
<p>Please see here for the function that calculates the
field_summary:</p>
<p><a class="moz-txt-link-freetext" href="https://github.com/simnibs/simnibs/blob/master/simnibs/msh/mesh_io.py#L2231">https://github.com/simnibs/simnibs/blob/master/simnibs/msh/mesh_io.py#L2231</a></p>
<p>If you want to calculate a different percentile you can do this
(in python):</p>
<pre>from simnibs.msh import mesh_io</pre>
<pre>m = mesh_io.read_msh('ernie_TDCS_1_scalar.msh')</pre>
<pre>#This produces volumes with 50%tile
</pre>
<pre>m.fields_summary(roi=2, percentiles=[50])</pre>
<pre>#This produces areas</pre>
<pre>m.fields_summary(roi=1002, percentiles=[50])</pre>
<p>Note that the output units differ between the two calls, for
volumes it will be mm^3 and for areas it will be mm^2. This will
depend on the roi you pass. roi=2 means that you calculate the
volume of the tetrahedra where the field is higher than the %tile
you define, whereas for roi=1002 calculates the area of the
triangles the same way.</p>
<p>Best,</p>
<p>Oula</p>
<p><br>
</p>
<div class="moz-cite-prefix">On 11/15/22 10:49, LAURENT TORLAY
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:747242290.8128668.1668505765449.JavaMail.zimbra@univ-grenoble-alpes.fr">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div style="font-family: arial, helvetica, sans-serif; font-size:
12pt; color: #000000">
<div><br>
</div>
<div>Hello,<br data-mce-bogus="1">
</div>
<div><br data-mce-bogus="1">
</div>
<div>First, I use Simnibs for several years and thank you for
developping such a software !<br data-mce-bogus="1">
</div>
<div>My question : in the file fields_summary.txt, focality is
measured by 'area with a field >= X% of the 99.9th
percentile', how can we get a similar measurement with a
specific threshold in V/m ? (moreover, why the result is a
volume ? The area is multiplied by a mean cortical thickness
(of the area, the whole brain ?) )<br data-mce-bogus="1">
</div>
<div>Thanks in advance,<br data-mce-bogus="1">
</div>
<div>Best,<br data-mce-bogus="1">
</div>
<div><br data-mce-bogus="1">
</div>
<div>L. Torlay<br data-mce-bogus="1">
</div>
<div><br>
</div>
</div>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
Simnibs-discuss mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Simnibs-discuss@drcmr.dk">Simnibs-discuss@drcmr.dk</a>
<a class="moz-txt-link-freetext" href="https://mailman.drcmr.dk/mailman/listinfo/simnibs-discuss">https://mailman.drcmr.dk/mailman/listinfo/simnibs-discuss</a>
</pre>
</blockquote>
</body>
</html>