Skip to content

OishiLab/OpenMAP-Di

Repository files navigation

OpenMAP_Logo_with_name

OpenMAP-Di

OpenMAP-Di parcellates an infant's DTI brain scan into 169 anatomical regions.

System Requirements

Operating System

OpenMAP-Di has been tested on Linux (Ubuntu 22.04) and MacOS. Although untested, it should theoretically work on Windows as well.

Hardware Requirements

Like the nnU-Net hardware requirements for inference, a GPU of at least 4 GB of available VRAM is recommended for faster predictions; however, inference times are typically still manageable on CPU and MPS (Apple M1/M2).

Installation Instructions

  1. Create a Python 3 virtual environment. Activate the environment.
conda create -n OpenMAP-Di python=3.10
conda activate OpenMAP-Di
  1. Clone this repository.
git clone https://github.com/OishiLab/OpenMAP-Di.git
cd OpenMAP-Di
  1. Install the required Python libraries.
pip install -r requirements.txt
  1. Download the pre-trained model using this link. Link of pretraind model!

  2. Convert the data you would like to parcellate into the nnU-Net data format for inference. Specifically, the INPUT_FOLDER should look similar to below. Channel numbers are defined in the dataset.json file within the pre-trained MODEL_FOLDER; for the provided model, channels 0000, 0001, 0002, 0003, 0004 correspond to dwi, b0, color_r, color_g, color_b. convert_to_nnunet_format.py has also been provided to assist in the conversion; see help (-h) for more details.

python convert_to_nnunet_format.py -i INPUT_FOLDER -d DWI_FILE -b B0_FILE -c COLOR_FILE -s SUBJECT_IDENTIFIER
    INPUT_FOLDER
    ├── brain_00_0000.nii.gz
    ├── brain_00_0001.nii.gz
    ├── brain_00_0002.nii.gz
    ├── brain_00_0003.nii.gz
    ├── brain_00_0004.nii.gz
    ├── brain_01_0000.nii.gz
    ├── brain_01_0001.nii.gz
    ├── brain_01_0002.nii.gz
    ├── brain_01_0003.nii.gz
    ├── brain_01_0004.nii.gz
    ├── ...
  1. Run parcellate_neonatal_brain.py to parcellate your dataset! See help (-h) for more details. Inferred parcellations will be outputted to the OUTPUT_FOLDER, while postprocessed parcellations will be outputted to a postprocessing subfolder of the OUTPUT_FOLDER.
python parcellate_neonatal_brain.py -i INPUT_FOLDER -o OUTPUT_FOLDER -m MODEL_FOLDER -device DEVICE

Citation

In recognition of the efforts put into developing the OpenMAP-Di model, you are required to cite the model appropriately in any publications, presentations, or research outputs that utilize this model. This citation is crucial for acknowledging the work of the developers and contributing to the academic and professional discourse surrounding deep learning and its applications. [Kengo Onda, Nathanael Kuo, Kei Nishimaki, Jill Chotiyanonta, Yukako Kawasaki, Linda Chang, Thomas Ernst, Charlamaine Parkinson, Aylin Tekes, Raul Chavez-Valdez, Dhananjay Vaidya, Ernest M. Graham, Allen D. Everett, Frances J. Northington, and Kenichi Oishi. OpenMAP-Di: Open Resource for Multiple Anatomical Region Parcellation of Diffusion MRI for Infantile Hypoxic-Ischemic Lesion Quantification, ISMRM 2024 conference abstract, Singapore.]

About

DTI Infant Brain Parcellation Using OpenMAP-Di

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •