Home – PyHRF

PyHRF is a Python library for the analysis of fMRI data based on the study of hemodynamics.

Visualization tools

Visualization tools – This page sums up some advices on how to visualize PyHRF results.

NeuroElf

Visualization tools

For exploration of results, you can use the NeuroElf viewer with small modifications of the code to allow better visualization of HRFs and results. NeuroElf is a Matlab toolbox so you’ll need to have Matlab installed on your system.

Installation

Go to the NeuroElf page and follow instructions for NeuroElf installation.

For easier use of the tool, you can modify part of the code for better HRF and PPMs visualizations. The modifications for PyHRF are available here for download (just replace the original files).

If you prefer (for advanced use) you can also download the patchs version

Use

  1. (Optional) Run NeuroElf from Matlab, then open the Anatomical file from the File menu.
  2. Run NeuroElf from Matlab, then open the jde_vem_hrf_mapped.nii file from the File menu.
  3. From the File menu, select the Set underlay object item and select either the loaded anatomical file or the one provided by NeuroElf
  4. From the File menu, select Open file as stats item and load all the jde_vem_ppm_a_nrl_condition.nii files at once.
  5. You can than select from the left menu the condition you want to visualize (you can tweak the threshold if you need to on the right panel).

Nilearn

Visualization tools

For global visualization of PyHRF results, we advise to use the Nilearn plot functions.

We will provide some examples to plot PPMs maps as well as HRFs from active parcels.

PyHRF Viewer

There exists an old viewer for pyhrf you can try (which is not supported nor recommended anymore).

Ramon Sanders

Back to top