<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Hi Nick,
<div class=""><br class="">
</div>
<div class="">You need to use the anatomical MRI that you used to create your headmodel etc., register it to ctf-space using ft_volumerealign (in the interactive mode, it seems), and then use some magical matrix multiplications to get the appropriate transformation
 matrix that can be applied to the headmodel (to get it in ctf space), or (when taking the inverse of this transformation matrix) to the grad structure (to get it in spm space).</div>
<div class=""><br class="">
</div>
<div class="">The solution is embedded here: <a href="http://www.fieldtriptoolbox.org/tutorial/minimumnormestimate" class="">http://www.fieldtriptoolbox.org/tutorial/minimumnormestimate</a></div>
<div class=""><br class="">
</div>
<div class="">look for the transform_vox2spm and transform_vox2ctf, and the magical variable T.</div>
<div class=""><br class="">
</div>
<div class="">Best,</div>
<div class="">Jan-Mathijs</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
<div>
<blockquote type="cite" class="">
<div class="">On 24 Sep 2016, at 06:24, Nicholas A. Peatfield <<a href="mailto:nick.peatfield@gmail.com" class="">nick.peatfield@gmail.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<p dir="ltr" class="">Hi Arjen,</p>
<p dir="ltr" class="">Yeah I looked into that but spm to ctf is not supported. And changing the grads to spm seems also not possible. Unless I use ft realignsens but the behaviour of that seems a little weird in my experience, and seems more suited to electrodes.</p>
<p dir="ltr" class="">Cheers</p>
<p dir="ltr" class="">Nick </p>
<div class="gmail_extra"><br class="">
<div class="gmail_quote">On Sep 23, 2016 7:35 PM, "Arjen Stolk" <<a href="mailto:a.stolk8@gmail.com" class="">a.stolk8@gmail.com</a>> wrote:<br type="attribution" class="">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="auto" class="">
<div class=""></div>
<div style="direction:inherit" class="">Hi Nick,</div>
<div style="direction:inherit" class=""><br class="">
</div>
<div style="direction:inherit" class="">You may want to have a look at ft_convert_coordsys which can switch volumes between different coordinate systems. </div>
<div style="direction:inherit" class=""><br class="">
</div>
<div style="direction:inherit" class="">Best,</div>
<div style="direction:inherit" class="">Arjen</div>
<div class=""><br class="">
On Sep 23, 2016, at 4:55 PM, Nicholas A. Peatfield <<a href="mailto:nick.peatfield@gmail.com" target="_blank" class="">nick.peatfield@gmail.com</a>> wrote:<br class="">
<br class="">
</div>
<blockquote type="cite" class="">
<div class="">
<div dir="ltr" class="">Hi all,
<div class=""><br class="">
<div class="">I'm getting into a problem wherein I have headmodel that are in SPM space and the grads are in CTF space. I would usually keep all the headmodels in CTF space and align based on that but for this dataset and the format of the MRIs,POS etc... there
 seems to be some problems (could take longer to explain but lets keep this brief).</div>
<div class=""><br class="">
</div>
<div class="">So this of course leads to the issue that the grad and the headmodel within beamformer_lcmv is misaligned by 90 degrees, which is of course not good. Is there a quick solution that I have not come across to either convert the headmodel to ctf
 or convert the grad structure to spm coordsys? When I specify in the ft_prepare_sourcemodel I explicitly say (cfg.coordsys = 'ctf') but the outputted sourcemodel is still misaligned between the headmodel and the grads (see attached image - oh and the lf is
 also misaligned of course).</div>
<div class=""><br class="">
</div>
<div class="">Any help would be greatly appreciated. And I hope that this question hasn't come up before as I did quite a bit of google searching before sending this email.</div>
<div class=""><br class="">
</div>
<div class="">With Regards,</div>
<div class=""><br class="">
</div>
<div class="">Nick</div>
<div class=""><br class="">
</div>
<div class=""><br clear="all" class="">
<div class=""><image (3).png><br class="">
</div>
-- <br class="">
<div class="">
<div dir="ltr" class="">
<div class="">
<div dir="ltr" class="">
<div class=""><font face="arial, helvetica, sans-serif" size="2" class="">Nicholas Peatfield, PhD</font></div>
<div class=""><br class="">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
<blockquote type="cite" class="">
<div class=""><span class="">______________________________<wbr class="">_________________</span><br class="">
<span class="">fieldtrip mailing list</span><br class="">
<span class=""><a href="mailto:fieldtrip@donders.ru.nl" target="_blank" class="">fieldtrip@donders.ru.nl</a></span><br class="">
<span class=""><a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" target="_blank" class="">https://mailman.science.ru.nl/<wbr class="">mailman/listinfo/fieldtrip</a></span></div>
</blockquote>
</div>
<br class="">
______________________________<wbr class="">_________________<br class="">
fieldtrip mailing list<br class="">
<a href="mailto:fieldtrip@donders.ru.nl" class="">fieldtrip@donders.ru.nl</a><br class="">
<a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" rel="noreferrer" target="_blank" class="">https://mailman.science.ru.nl/<wbr class="">mailman/listinfo/fieldtrip</a><br class="">
</blockquote>
</div>
</div>
_______________________________________________<br class="">
fieldtrip mailing list<br class="">
<a href="mailto:fieldtrip@donders.ru.nl" class="">fieldtrip@donders.ru.nl</a><br class="">
https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>