Fork me on GitHub

2. Visualization tools

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

2.1. NeuroElf

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.

2.1.1. Installation

Go to the NeuroElf page and follow instructions for NeuroElf installation. Prefer the flat folder snapshot, extract it and add the path to your MATLAB’s path.

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 alternatively download the patched version.

2.1.2. Use

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

2.2. Nilearn

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.

2.3. PyHRF Viewer

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