This directory contains convenience wrapper scripts for running the Alzheimer MRI Processing Pipeline stages. These scripts simplify execution for non-technical users by wrapping the Python CLI commands.
unix_based_system/- Shell scripts (.sh) for Linux and macOSwindows_based_system/- Batch scripts (.bat) for Windows
Run these scripts if you want to execute stages one-by-one and monitor progress:
./scripts/unix_based_system/run_environment_setup.sh
./scripts/unix_based_system/run_data_preparation.sh
./scripts/unix_based_system/run_nifti_processing.sh
./scripts/unix_based_system/run_image_processing.shscripts\windows_based_system\run_environment_setup.bat
scripts\windows_based_system\run_data_preparation.bat
scripts\windows_based_system\run_nifti_processing.bat
scripts\windows_based_system\run_image_processing.batRun these scripts if you want to execute the entire pipeline end-to-end in one go. Only use these if you have sufficient machine resources and can leave the process running for several hours.
./scripts/unix_based_system/run_full_pipeline.shscripts\windows_based_system\run_full_pipeline.bat- Runs environment setup with GPU detection
- Auto-installs PyTorch with appropriate CUDA version
- Performs full performance test
- Runs data splitting (train/val/test)
- Runs data analysis
- Generates manifest files
Runs all NIfTI processing substages sequentially:
- Skull Stripping (test)
- Skull Stripping (process)
- Template Registration (test)
- Template Registration (process)
- Labelling
- 2D Conversion
Runs all image processing substages sequentially:
- Center Crop
- Image Enhancement
- Data Balancing
Runs all stages in sequence:
- Environment Setup
- Data Preparation
- NIfTI Processing (all substages)
- Image Processing (all substages)
Warning: This will take several hours and requires significant computational resources.
Before running any script:
- Python 3.10+ must be installed
- Dependencies should be installed (
pip install -r requirements.txt) - Configuration files should be set up (see
configs/default.yaml) - Template files should be downloaded (see
support_files/templates/*/README.md)
- Start with individual stage scripts
- Run stages one at a time
- Check outputs between stages
- Monitor system resources (RAM, disk space)
- Use full pipeline script if you have powerful hardware
- Can leave running unattended
- Monitor logs in
.reports/directory
Make scripts executable:
chmod +x scripts/unix_based_system/*.shEnsure Python is in your PATH:
# Check Python version
python --version
# Or try python3
python3 --version- Check that you're in the project root directory
- Verify configuration files are set up correctly
- Check that required template files are downloaded
- Review error messages in the terminal output
If you prefer more control or need to customize parameters, you can run the Python CLI directly:
adp <stage> <action> [options]See the main README.md for detailed CLI usage examples.