<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
Hi Siamak,
<div class=""><br class="">
</div>
<div class="">Why do you think that you need to convert anything? As far as I can tell, the help documentation of ft_read_mri (<a href="https://urldefense.com/v3/__https://github.com/fieldtrip/fieldtrip/blob/master/fileio/ft_read_mri.m__;!!HJOPV4FYYWzcc1jazlU!7npeRmvEN0Icn0O6P3WP_0hVkGO6DX5oScMzlLeYJvAl0qGUrBEuHvSoEXsHmolWWJ0n0DYUNJ5VRqw0nuH2zkpKMl-Eu_mEt_pQnw$" class="">https://github.com/fieldtrip/fieldtrip/blob/master/fileio/ft_read_mri.m</a>)
 clearly mentions that it directly supports *.nii and *.nii.gz files. If there’s some other documentation that you came across, which mentions otherwise, and this documentation is one of the subpages of
<a href="https://urldefense.com/v3/__http://fieldtriptoolbox.org__;!!HJOPV4FYYWzcc1jazlU!7npeRmvEN0Icn0O6P3WP_0hVkGO6DX5oScMzlLeYJvAl0qGUrBEuHvSoEXsHmolWWJ0n0DYUNJ5VRqw0nuH2zkpKMl-Eu_lNRaAPnw$" class="">fieldtriptoolbox.org</a>, please adjust the text accordingly in a pull request on github (<a href="https://urldefense.com/v3/__https://github.com/fieldtrip/website__;!!HJOPV4FYYWzcc1jazlU!7npeRmvEN0Icn0O6P3WP_0hVkGO6DX5oScMzlLeYJvAl0qGUrBEuHvSoEXsHmolWWJ0n0DYUNJ5VRqw0nuH2zkpKMl-Eu_nX0tFnJA$" class="">https://github.com/fieldtrip/website</a>) or equivalently press
 the ‘edit page with github’ link on the relevant page.</div>
<div class=""><br class="">
</div>
<div class="">Best wishes,</div>
<div class="">Jan-Mathijs</div>
<div class=""><br class="">
<div><br class="">
<blockquote type="cite" class="">
<div class="">On 24 Jan 2023, at 08:14, Siamak Sorooshyari via fieldtrip <<a href="mailto:fieldtrip@science.ru.nl" class="">fieldtrip@science.ru.nl</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div class="">
<div class="ydpedc47136yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;">
<div dir="ltr" data-setdir="false" class="">
<div class="">
<div dir="ltr" data-setdir="false" class=""><br class="">
</div>
<div dir="ltr" data-setdir="false" class="">How do you convert .nii (or I guess .nii.gz) files to .mri files. This is because I've been given .nii.gz files by the OMEGA dataset and I want to feed them into FieldTrip via the FieldTrip ft_read_mri() function.
 I am trying to get anatomical information so I can feed that into the MEG source localization that I'm trying. </div>
<div class=""><br class="">
</div>
</div>
</div>
</div>
</div>
_______________________________________________<br class="">
fieldtrip mailing list<br class="">
<a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" class="">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br class="">
https://urldefense.com/v3/__https://doi.org/10.1371/journal.pcbi.1002202__;!!HJOPV4FYYWzcc1jazlU!8Zu0-0EWmjs35RiZa4_KQLPCjFq1llUC0eWkKZg1QeNSUq4KR9vZoNlJGh6pjecl0GOWEICJXhM1b678lB9c4zlmK3mIMQpDBPLC9g$
<br class="">
</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>