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 current development image:

docker pull bids/rshrf:unstable

2. Run the analysis:

To run the analysis on a BIDS derivative dataset, such as an fMRIPrep derivatives directory, use the BIDS Apps-style command structure:

docker run -ti --rm \
  -v /path/to/your/bids_derivative_dataset:/data:ro \
  -v /path/to/your/output_dir:/out \
  bids/rshrf:unstable \
  /data \
  /out \
  participant \
  --participant-label 01 \
  -m BIDS \
  --estimation canon2dd

Here, /data should point to the BIDS derivative dataset containing files such as dataset_description.json, preprocessed BOLD images, and brain masks. The participant label should be provided without the sub- prefix.

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.7.0.tar.gz (57.8 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.7.0-py3-none-any.whl (70.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for rshrf-1.7.0.tar.gz
Algorithm Hash digest
SHA256 59451557e2bfbeef9efd128ccc677934c507927cc23ade190d25119cd0cfadd9
MD5 f1bc5a51379646187eed11548f70a7fe
BLAKE2b-256 c49109cf20a6fc9b20c80974f3407a14a918b2a0074595c60ff8a4c6b81672fb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rshrf-1.7.0-py3-none-any.whl
  • Upload date:
  • Size: 70.8 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.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 85a4748d4b4c558b3480bf9a1278d46feb830487104f7c5f91f3f4b2ec9222a4
MD5 39a84e367969e8d38434e5c4b699d4f7
BLAKE2b-256 5e08e34b256a6063cfa2ccfef75bd5197dba7e5cfb7ea2a436b5d4dee6e9cfc7

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