AIMS Lab Research Team at the Robarts Research Institute - 2023-2024
This package is under active development. It should be stable and reproducible, but please let any of the active contributing members know if there are any bugs or unusual behaviour.
This Python package is a standard 3D U-Net (Ronneberger et al. 2015) machine learning model based on Snakemake and SnakeBIDS workflow management tools that leverages the recent release of the anatomical fiducial framework to solve the landmark regression problem on 3D MRI images. It is currently in development phase and contains tunable parameters that are not normally exposed in most other machine learning models; the user is highly advised to get familiar with the above mentioned workflow managaments tools and read docstrings and relevant documentation before using this software. Please see the changelog for more details.
- Installation
- Workflow
- Train
- Apply
- Known issues
- Roadmap
- Questions, Issues, Suggestions, and Other Feedback
We use poetry tool for dependency management and to package the python project. You can find step by step instructions on how to install it by visiting it's official website.
After installing poetry, clone this repository via:
git clone https://github.com/afids/autoafids.git
You can then install the python package using one of the following commands, which should be executed within the repository folder (i.e., autoafids/).
poetry install
If you want to install in develop mode, use:
poetry install -e
Brief summary of the workflow along with its Directed Acyclic Graph (DAG) can be found below.
Insert DAG image - inspired by khanlab/scattr
- Extract fiducial points from the landmark files (.fcsv is supported)
- Generate a landmark Euclidean distance/probability map with each voxel communicating distance to an AFID of interest
Currently, we support generating your own models (i.e., training) in a sperate workflow (i.e., afids-cnn: https://github.com/afids/afids-CNN). For more details, see Known Issues.
Use the classic BIDS App syntax to genereate output AFID .fcsv files. For other derivative outputs, the following flags will be supported:
--regqc: for quality control of registration on a BIDS dataset and its derivatives (e.g., fMRIPrep or LeadDBS derivative outputs)
--stereotaxy: predicts a .fcsv file with stereotactic targets (e.g., subthalamaic nucelus) also providing AC-PC transform files in the process
--charing: to make use of AFID charting analysis on a given dataset
- Factorize apply workflow to run per landmark of interest
- Model optimization
- Extension to incorporate new modalities (i.e., CT scans)
Please reach out if you have any questions, suggestions, or other feedback related to this software—either through email ([email protected]) or the discussions page. Larger issues or feature requests can be posted and tracked via the issues page. Finally, you can also reach out to Alaa Taha, the Science Lead.