<div dir="ltr">This is great! I will try it, thank you.<div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">El mié., 20 mar. 2019 a las 18:47, Yaroslav Halchenko (<<a href="mailto:debian@onerussian.com">debian@onerussian.com</a>>) escribió:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
On Wed, 20 Mar 2019, Alyson Saenz wrote:<br>
<br>
>    Dear PyMVPA community,<br>
>    I'm trying to load cope files from FSL to then use in PyMVPA, I search<br>
>    through functions listed in the PyMVPA manual and I found some candidates,<br>
>    but these functions don't appear when I import the PyMVPA libraries this<br>
>    is an example:<br>
>    getNiftiFromAnySource(src)<br>
>    Is there another way to load nifti files? Or how should I import the<br>
>    libraries to use that function?<br>
<br>
I believe you can just use  fmri_dataset  .<br>
<br>
For some reason I felt some urge I guess, so here is a complete helper:<br>
<a href="https://github.com/PyMVPA/PyMVPA/pull/603/files" rel="noreferrer" target="_blank">https://github.com/PyMVPA/PyMVPA/pull/603/files</a><br>
so you could just point to a .feat directory and get a nice dataset,<br>
e.g.<br>
<br>
    $> PYTHONPATH=/home/yoh/proj/pymvpa/pymvpa python -c 'from mvpa2.misc.fsl import load_stats; print(load_stats(".", ["cope", "tstat"]))'<br>
     <Dataset: 14x143360@float32, <sa: indexes,stats,targets>, <fa: voxel_indices>><br>
<br>
Feel welcome to improve that PR, not sure if I would jump to finish it<br>
up any time soon<br>
<br>
-- <br>
Yaroslav O. Halchenko<br>
Center for Open Neuroscience     <a href="http://centerforopenneuroscience.org" rel="noreferrer" target="_blank">http://centerforopenneuroscience.org</a><br>
Dartmouth College, 419 Moore Hall, Hinman Box 6207, Hanover, NH 03755<br>
Phone: +1 (603) 646-9834                       Fax: +1 (603) 646-1419<br>
WWW:   <a href="http://www.linkedin.com/in/yarik" rel="noreferrer" target="_blank">http://www.linkedin.com/in/yarik</a>        <br>
<br>
_______________________________________________<br>
Pkg-ExpPsy-PyMVPA mailing list<br>
<a href="mailto:Pkg-ExpPsy-PyMVPA@alioth-lists.debian.net" target="_blank">Pkg-ExpPsy-PyMVPA@alioth-lists.debian.net</a><br>
<a href="https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-exppsy-pymvpa" rel="noreferrer" target="_blank">https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-exppsy-pymvpa</a></blockquote></div>