<div>many thanks always for your help, Michael</div>
<div>I have&nbsp;already preprocessed&nbsp;image files in analyze format. Should I just convert them into 4D&nbsp;nifti in SPM5 and use it&nbsp;in the pyMVPA&nbsp;</div>
<div>or&nbsp;can I also load the individual&nbsp;.img/.hdr (total 925files) in the python given it also supports&nbsp;analyze format?&nbsp;</div>
<div>&nbsp;</div>
<div>Thanks,&nbsp;</div>
<div>YSL</div>
<div>&nbsp;<br><br></div>
<div class="gmail_quote">On Fri, Dec 26, 2008 at 11:55 AM, Michael Hanke <span dir="ltr">&lt;<a href="mailto:michael.hanke@gmail.com">michael.hanke@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div class="Ih2E3d">On Fri, Dec 26, 2008 at 04:12:13PM +0000, Matthew Brett wrote:<br>&gt; Hi,<br>&gt;<br>&gt; On Fri, Dec 26, 2008 at 3:21 PM, Yaroslav Halchenko<br>&gt; &lt;<a href="mailto:debian@onerussian.com">debian@onerussian.com</a>&gt; wrote:<br>
&gt; &gt;&gt; &nbsp; &nbsp;I&#39;ve been using analyze format (.img/.hdr) in SPM5 installed in<br>&gt; &gt;&gt; &nbsp; &nbsp;window OS and now I need to convert from analyze to nifti format in<br>&gt; &gt;&gt; &nbsp; &nbsp;order to use the pyMVPA.<br>
&gt; &gt; you do not have to -- nifti.NiftiImage used by PyMVPA is capable of<br>&gt; &gt; reading analyze files. It is just that NIfTI is better ;-)<br>&gt;<br>&gt; I assume that this is SPM&#39;s Nifti img/hdr pair though - it&#39;s an<br>
&gt; allowable version of the nifti format where the header and data are in<br>&gt; different files. &nbsp;Confusingly it has the same file names as the<br>&gt; Analyze format...<br></div>Both. PyNIfTI uses the nifticlib reference implementation (just as FSL<br>
does). It reads plain ANALYZE (without NIfTI header extension) as<br>hdr/img file pair, as well as single file nifti (commpressed and<br>uncompressed), but also nifti file pairs (also hdr/img, and optionally<br>compressed as hdr.gz/nii.gz). The most recent version of PyNIfTI also<br>
provides memory-mapped access to uncompressed NIfTI files.<br><br>Cheers,<br>
<div class="Ih2E3d"><br>Michael<br><br>--<br>GPG key: &nbsp;1024D/3144BE0F Michael Hanke<br><a href="http://apsy.gse.uni-magdeburg.de/hanke" target="_blank">http://apsy.gse.uni-magdeburg.de/hanke</a><br>ICQ: 48230050<br><br>_______________________________________________<br>
</div>
<div>
<div></div>
<div class="Wj3C7c">Pkg-ExpPsy-PyMVPA mailing list<br><a href="mailto:Pkg-ExpPsy-PyMVPA@lists.alioth.debian.org">Pkg-ExpPsy-PyMVPA@lists.alioth.debian.org</a><br><a href="http://lists.alioth.debian.org/mailman/listinfo/pkg-exppsy-pymvpa" target="_blank">http://lists.alioth.debian.org/mailman/listinfo/pkg-exppsy-pymvpa</a><br>
</div></div></blockquote></div><br>