<div dir="ltr">Thank you for the quick response! I met with my lab today and they are looking to have the option of either outputting a NIftI file, which was indeed solved using 'volume' for output_modality in the query engine OR, preferably, outputting a FreeSurfer-compatible surface file with the PyMVPA searchlight results as we are looking to visualize it ultimately on the surface. The former is working with your suggestion. The latter is not working. I am using surf.write() with an .asc extension for the output file but when passing in the surface-based searchlight output dataset, it errors out while trying to convert it to a surface. Here is the error:<div><br></div><div><div><div><div>/projectnb/somerslab/john/python/PyMVPA/mvpa2/support/nibabel/surf.pyc in write(fn, s, overwrite)</div><div>   2222     if fn.endswith('.asc'):</div><div>   2223         from mvpa2.support.nibabel import surf_fs_asc</div><div>-> 2224         surf_fs_asc.write(fn, s, overwrite=overwrite)</div><div>   2225     elif fn.endswith('.gii'):</div><div>   2226         if not fn.endswith('.surf.gii'):</div><div><br></div><div>/projectnb/somerslab/john/python/PyMVPA/mvpa2/support/nibabel/surf_fs_asc.pyc in write(fn, surface, overwrite, comment)</div><div>    119     s.append(comment)</div><div>    120</div><div>--> 121     nv, nf = surface.nvertices, surface.nfaces,</div><div>    122     v, f = surface.vertices, surface.faces</div><div>    123</div><div><br></div><div>AttributeError: 'Dataset' object has no attribute 'nvertices'</div></div></div></div><div><br></div><div>Any suggestions? If you need to take a look at the code, again the updated code is accessible at this link:</div><div><br></div><div><a href="https://github.com/jbaublitz/somerslab-mvpa-wrapper/blob/master/surface_searchlight.py">https://github.com/jbaublitz/somerslab-mvpa-wrapper/blob/master/surface_searchlight.py</a><br></div><div><br></div><div>Thank you so much for your quick and comprehensive support!</div><div><br></div><div>John</div></div>