DCEasy is a set of open-source tools for quantitative dynamic contrast-enhanced MRI, maintained by the PET/MRI Lab at Loma Linda University. Together they cover the whole path from scanner output to parameter maps; each one is also usable on its own.
Where each tool fits¶
You can run the pipeline two ways.
End to end. dce2bids converts the study to BIDS, then DCEPrep takes it the rest of the way in one Dockerized run — preprocessing, T1 mapping, AIF detection, fitting and QC.
Step by step. Swap in your own tools at any stage, or use ours individually. The cards below say which tool covers each.
Tools¶
-
dce2bids Python · AI-assisted
Converts raw DCE-MRI DICOMs straight from the scanner into a tidy BIDS dataset. An AI coding agent works out the right per-scanner settings once; after that each new participant converts with a single command, with guardrails and verification around it.
-
DCEPrep Shell · Python · Docker
The whole pipeline in one container: motion correction, bias field correction, z-axis normalization, VFA T1 mapping, AIF detection, Ktrans fitting ROCKETSHIP, and per-case and population QC reports.
-
parametric_scripts MATLAB
Generates T1 (inversion recovery and variable flip angle), T2, T2* and ADC maps, with a fitting GUI, batch processing and parallel fitting. Reads NIfTI and Analyze.
-
AutoAIF Python · deep learning
Finds the arterial input function automatically — no manual ROI drawing. Pretrained on multi-site brain DCE-MRI cohorts, outputs a vascular function curve and a 3D mask, and supports fine-tuning on new datasets.
-
AIFArtist Python
Manual AIF annotation when you want a human in the loop, or a multi-rater reference to check AutoAIF against. Live ROI curve preview, BIDS-style derivative outputs with the rater ID in the filename, and flag-and-skip for poor AIFs.
-
ROCKETSHIP MATLAB
A GUI-driven suite for full DCE-MRI analysis: pre-contrast T1 mapping, AIF selection and fitting, multi-model pharmacokinetic fitting (Tofts, Extended Tofts, Patlak, 2CXM, FXR, tissue uptake) and results visualization.
-
Gpufit CUDA · C++
Levenberg–Marquardt curve fitting on the GPU, with the DCE models built in — Patlak, Tofts, Extended Tofts, tissue uptake, 2CXM, T1 FA exponential. Full CPU parity, Python and MATLAB wrappers, prebuilt binaries. Useful for accelerating any DCE pipeline, not only ours.
Which tool do I need?¶
| I want to… | Use |
|---|---|
| Convert DCE DICOMs to BIDS | dce2bids |
| Run the complete pipeline on BIDS data, automatically | DCEPrep |
| Run preprocessing only — motion, alignment, artifact correction | DCEPrep |
| Generate T1, T2 or ADC maps | parametric_scripts |
| Find the AIF automatically, with deep learning | AutoAIF |
| Draw and save AIF ROIs by hand, across multiple raters | AIFArtist |
| Fit pharmacokinetic models through a GUI | ROCKETSHIP |
| Accelerate model fitting inside another pipeline | Gpufit |
| Compare fit quality and parametric maps | ROCKETSHIP — Module E |
Quick start¶
git clone https://github.com/petmri/AutoAIF.git && cd AutoAIF
python3 -m venv tf && source tf/bin/activate
pip install -r requirements.txt
# Download Pretrained weights, ~470 MB
curl -L -o model_weight_huber1.h5 \
https://github.com/petmri/AutoAIF/releases/latest/download/model_weight_huber1.h5
python main_vif.py --mode inference \
--input_path /path/to/dce.nii.gz \
--model_weight_path model_weight_huber1.h5 \
--save_output_path /path/to/output/
Contact and contributing¶
Questions are best raised as an issue on the relevant repository. For anything else, contact the lab maintainer at sabarnes@llu.edu. Pull requests are welcome on all repositories.