# Export mixed source space to nifti

**URL:** <https://mne.discourse.group/t/export-mixed-source-space-to-nifti/1384>\
**Category:** Mailing List Archive (read-only)\
**Tags:** list-archive\
**Created:** [December 13, 2017, 10:02pm UTC](https://mne.discourse.group/t/export-mixed-source-space-to-nifti/1384 "2017-12-13T22:02:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [December 13, 2017, 10:02pm UTC](https://mne.discourse.group/t/export-mixed-source-space-to-nifti/1384/1 "2017-12-13T22:02:42Z")

</div>

Hello, can't find a way to do this. Found an old thread that talks about  
"updated MixedSourceEstimate.export\_volumes\_to\_nifti to include an option  
to export the surface activations as well" at  
[https://github.com/mne-tools/mne-python/pull/1462](https://github.com/mne-tools/mne-python/pull/1462) . However, I can't find  
documentation on using it, and it doesn't work if I try to use it  
(AttributeError:  
'MixedSourceEstimate' object has no attribute 'export\_volumes\_to\_nifti').  
Any help would be appreciated. Thanks, Lori

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [December 14, 2017, 12:40pm UTC](https://mne.discourse.group/t/export-mixed-source-space-to-nifti/1384/2 "2017-12-14T12:40:13Z")

</div>

Dear Lori,

presently in MNE there is no function to export a surface activation  
to a volume.

mri\_surf2vol in freesurfer would be my approach but it would need  
the high resolution activation as input.

please open an issue at : [https://github.com/mne-tools/mne-python/issues](https://github.com/mne-tools/mne-python/issues)

so you know when we implement this.

Best,  
Alex

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [December 14, 2017, 12:48pm UTC](https://mne.discourse.group/t/export-mixed-source-space-to-nifti/1384/3 "2017-12-14T12:48:23Z")

</div>

In the meantime, the code necessary to put a surface source estimate into a  
NIfTI volume is in a work-in-progress pull request here:

[https://github.com/mne-tools/mne-python/pull/4496/files#diff-c38906291c7d4fa5e1df2d494b9c27d2R129](https://github.com/mne-tools/mne-python/pull/4496/files#diff-c38906291c7d4fa5e1df2d494b9c27d2R129)

Eric

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [December 14, 2017, 10:16pm UTC](https://mne.discourse.group/t/export-mixed-source-space-to-nifti/1384/4 "2017-12-14T22:16:09Z")

</div>

Thank you for the replies. I previously figured out a (cumbersome) way of  
getting a surface from stc into nifti, but really need a way to get the  
mixed source space in. I will keep working on it. Best, Lori
