Published December 16, 2022 | Version v1
Software Open

CardiacBrain v1.0

  • 1. LREN/CHUV

Description

# CardiacBrain

# Authors
Quentin Raynaud, 2022

Laboratory for Neuroimaging Research,
Lausanne University Hospital & University of Lausanne, Lausanne, Switzerland

Copyright (C) 2022 Laboratory for Neuroimaging Research

# Content

The scripts used in CardiacBrain are the ones used to perform the characterization of cardiac-induced noise, in the article "Characterization of cardiac-induced noise in R2* maps of the brain", by Quentin Raynaud, Giulia Di Domenicantonio, Jérome Yerly, Thomas Dardano, Ruud B. van Heeswijk and Antoine Lutti.

A subset of data used in the original publication for computations of the results can be downloaded on Zenodo DOI:10.5281/zenodo.7428605.
These data contain 5D k-space data (kx/ky/kz/cardiac phase/TE) from one of the participants. 
- "CardiacBrain.zip" contains the data that needs to be used with the code.
- "CardiacBrain_validation.zip" contains the main results outputted by the code, and can be used for validation.

# Main functions

qr_CardiacBrain_Main is the main function that needs to be run by inputting the folder where the subject data are located.
It requires the 5D k-space data (Truek.mat), the labels (Labels.mat) as well as header information for SPM (SPMheader.mat).

This function will run the main functions in the following order:
- qr_CardiacBrain_Analysis
- qr_CardiacBrain_R2sCharact
- qr_CardiacBrain_SensitiveFreqs
- qr_CardiacBrain_ShowResults

## qr_CardiacBrain_Analysis
The first main function is used to model the cardiac-induced noise in image and k-space with the fundamental and the first harmonic of the Fourier series.
It saves the Fourier series weights (betas) as nifties for visualization using SMP12, and as .mat to be loaded with matlab. It also saves the modeled cardiac-induced noise in k-space.

## qr_CardiacBrain_R2sCharact
The second main function is used to compute maps of R2*/RMSE, R2*/RMSE standard deviation across the cardiac phase of the raw data, the raw data when the modeled cardiac noise is removed, and the modeled cardiac noise only.

## qr_CardiacBrain_SensitiveFreqs
The third main function is used to find the cardiac noise sensitive k-space region. It computes maps of R2*/RMSE, R2*/RMSE standard deviation across the cardiac phase of the raw data and the modeled cardiac noise only, when removing the fundamental and first harmonic of the Fourier series on a specific region of k-space.
The code also calculates and saves the cardiac-induced noise sensitive k-space area.

## qr_CardiacBrain_ShowResults
The final main function loads all the relevant results and makes images from them for visualization.
The different images are saved in \Results.

# REQUIREMENTS

- The scripts were run under MATLAB 2021a.
- The scripts require SPM12 to function properly (available here: https://www.fil.ion.ucl.ac.uk/spm/software/spm12/).

Files

CardiacBrain-1.0.zip

Files (35.3 kB)

Name Size Download all
md5:54da47029889d2f24495d27b8080038d
35.3 kB Preview Download

Additional details

Related works

Is required by
Dataset: 10.5281/zenodo.7428605 (DOI)

Funding

Swiss National Science Foundation
Advanced quantitative MRI biomarkers of Parkinson's Disease - towards in-vivo histology 320030_184784