This projects contains code to download and process diffusion data from Healthy Brain Network with QSIprep and other tools.
Project for Neurohackacademy 2024. Contributors:
- Allesandra Iadipaolo
- Gabriela Ojeda Valencia
- Qingqing Yang
- Claudia Tato Fernández
- Lya K. Paas
- Elle Murata
- Lupita Yáñez Ramos
- Luis A.
A Short Introduction to Diffusion MRI
- Get the data:
/code/001-get-hbn-data_lkpo.ipynb- Make sure to have
utilities.pyunder/code/ - We worked with the unprocessed data under
BIDS_curatedfolder. Each subject should have ananat,dwiandfmapfolder. - Data should be downloaded to a
datafolder to comply with BIDS format - Make sure to have
data_description.jsonunder the BIDS dataset folder (You can find it under/code/dataset_description.json). - You will need a txt file with the FS_license
- Make sure that fmaps belong to the dwi images. We removed the fMRI fmaps manually:
rm -rf /tmp/cache/data/sub-*/*/*fmri*
- Make sure to have
- Run QSIprep preprocessing:
/code/002_Run_QSI_Prep.sh- Create singularity image in
diffusion_mrifolder by typing on terminal:singularity build ./my-qsi-prep.sif docker://pennbbl/qsiprep:0.22.1
- To run the script do on Terminal:
./002_Run_QSI_Prep.sh <SUBID> - Modify all paths according to
- singularity image
- BIDS formatted
datadirectory - Output directory
- No need to modify subject id within the script
- Look at acquisition parameters to obtain the voxel resolution or modify according to desired voxel size
- Point to your freesurfer license
- After it is done, manually inspect the HTML and figures files for each subject
- Create singularity image in
- Run QSIprep reconstruction
/code/003_Run_QSI_Recon.sh- To run the script do on Terminal:
./003_Run_QSI_Recon.sh <SUBID> - Modify all paths according to
- Singularity image
- BIDS formatted
datadirectory - Output directory with qsirecon
- Input directory with the qsiprep outputs from the previous step
- Specify the reconstruction model you want to use. For reference: https://qsiprep.readthedocs.io/en/latest/reconstruction.html
- Look at acquisition parameters to obtain the voxel resolution or modify according to desired voxel size
- Point to your freesurfer license
- To run the script do on Terminal:
For more information regarding the present project and instructions to use the jupyter notebooks, visit the documentation page in this repository.