[Neuroimaging] Python for fMRI

Bennet Fauber bennet at umich.edu
Mon May 27 08:33:36 EDT 2019

You might find something in the documentation for Nibabel at


There is an example there of displaying the brain using a grey-scale
'heatmap', I think.  You might find what you want by changing the
cmap="gray" to something else.

You might also want to look at


which was a course devoted to Python and brain imaging analysis.

Both of those were useful to me.

On Mon, May 27, 2019 at 8:02 AM Hesna Ezgi AŞKIN <hesnaezgi at gmail.com> wrote:
> Hello,
> I'm a molecular biology and genetics student trying to learn coding with Python. I have figured out that I should use couple of libraries and managed to visualize the fMRI data coming in the format ".nii" as a brain image in Python. Now I'm trying to create a kind of heatmap, but I cannot imagine a way to basically sum up the matrices in .nii format in different folders (for different patients), or should I use some package like Seaborn?
> There might be a couple of ways, I just wanted to know the most suitable method for fMRI, and couldn't find someone around me who is knowledgable about both Python and fMRI.
> Thanks in advance. Regards,
> Hesna Ezgi
> +905416799793
> Bogazici University, 34470
> Bebek / Istanbul / Turkey
> _______________________________________________
> Neuroimaging mailing list
> Neuroimaging at python.org
> https://mail.python.org/mailman/listinfo/neuroimaging

More information about the Neuroimaging mailing list