Skip to main content

BIDs App to retrieve the haemodynamic response function from resting state fMRI data

Project description

Resting state HRF estimation and deconvolution

PyPI version

Please refer to https://github.com/compneuro-da/rsHRF for MATLAB version

BOLD HRF

The basic idea

This toolbox is aimed to retrieve the onsets of pseudo-events triggering an hemodynamic response from resting state fMRI BOLD voxel-wise signal. It is based on point process theory, and fits a model to retrieve the optimal lag between the events and the HRF onset, as well as the HRF shape, using a choice of basis functions (the canonical shape with two derivatives, (smoothed) Finite Impulse Response, mixture of gammas).

BOLD HRF

Once that the HRF has been retrieved for each voxel, it can be deconvolved from the time series (for example to improve lag-based connectivity estimates), or one can map the shape parameters everywhere in the brain (including white matter), and use the shape as a pathophysiological indicator.

HRF map

How to use the toolbox

The input is voxelwise BOLD signal, already preprocessed according to your favorite recipe. Important thing are:

  • bandpass filter in the 0.01-0.08 Hz interval (or something like that)
  • z-score the voxel BOLD time series

To be on the safe side, these steps are performed again in the code.

The input can be images (3D or 4D), or directly matrices of [observation x voxels].

It is possible to use a temporal mask to exclude some time points (for example after scrubbing).

The demos allow you to run the analyses on several formats of input data.

Python Package and BIDS-app

A BIDS-App has been made for easy and reproducible analysis. Its documentation can be accessed at:

https://bids-apps.neuroimaging.io/rsHRF/

Collaborators

  • Guorong Wu

  • Nigel Colenbier

  • Sofie Van Den Bossche

  • Daniele Marinazzo

  • Madhur Tandon (Python - BIDS)

  • Asier Erramuzpe (Python - BIDS)

  • Amogh Johri (Python - BIDS)

Docker Usage

You can run rsHRF as a containerized BIDS App using Docker. This avoids the need to install Python dependencies locally and ensures reproducibility.

1. Pull the latest image:

docker pull bids/rshrf:latest

2. Run the analysis:

To run the analysis on a BIDS-formatted dataset, use the following command structure:

docker run -ti --rm \
  -v /path/to/your/bids_dataset:/data:ro \
  -v /path/to/your/output_dir:/out \
  bids/rshrf:latest \
  --bids_dir /data \
  --output_dir /out \
  --analysis_level participant \
  --participant_label 01 \
  --brainmask \
  --estimation canon2dd \
  --wiener

References

  1. Wu, G. R., Colenbier, N., Van Den Bossche, S., Clauw, K., Johri, A., Tandon, M., & Marinazzo, D. (2021). rsHRF: A toolbox for resting-state HRF estimation and deconvolution. Neuroimage, 244, 118591. open access journal page

  2. Guo-Rong Wu, Wei Liao, Sebastiano Stramaglia, Ju-Rong Ding, Huafu Chen, Daniele Marinazzo*. "A blind deconvolution approach to recover effective connectivity brain networks from resting state fMRI data." Medical Image Analysis, 2013, 17:365-374. Open access institutional repo

  3. Guo-Rong Wu, Daniele Marinazzo. "Sensitivity of the resting state hemodynamic response function estimation to autonomic nervous system fluctuations." Philosophical Transactions of the Royal Society A, 2016, 374: 20150190. Open access institutional repo

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rshrf-1.6.3.tar.gz (52.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rshrf-1.6.3-py3-none-any.whl (65.0 kB view details)

Uploaded Python 3

File details

Details for the file rshrf-1.6.3.tar.gz.

File metadata

  • Download URL: rshrf-1.6.3.tar.gz
  • Upload date:
  • Size: 52.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.9

File hashes

Hashes for rshrf-1.6.3.tar.gz
Algorithm Hash digest
SHA256 5e5f29ac06ce99b6c7f3b950b0c499bb17515e7182f7fb2cbdd03fd8eae9648d
MD5 ee73e29e372b7aa868c95a7f5522a538
BLAKE2b-256 eace4b316c05c8e9563416245455bbf4e80f8c7b520359afa222795a1b78fa7f

See more details on using hashes here.

File details

Details for the file rshrf-1.6.3-py3-none-any.whl.

File metadata

  • Download URL: rshrf-1.6.3-py3-none-any.whl
  • Upload date:
  • Size: 65.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.9

File hashes

Hashes for rshrf-1.6.3-py3-none-any.whl
Algorithm Hash digest
SHA256 2b9c636ffc8a1fbac7219b0484cf549556bed15389fed52c08132e03696a227c
MD5 0c89e77125f7fb7e3abf5360e978ccc7
BLAKE2b-256 c8e1a9ee16987e8e69b8a9741855fb57176ae05d94fd70619abfc8969f2a3e1d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page