Reconstructing a pre-tumor brain state via atlas registration
- Clone the github directory
- Install the requirements.txt (ideally in a venv and activate the environment)
- Makethe main.py script executable and start using it.
./main.py /path/to/scan /path/to/output
You must provide the path to the 3D MRI Scan to be reconstructed and the path to the folder where output should be stored.
- (optional) Specify flags to add other modalities in the output
- For transforming DTI images functions are needed, that are not yet supported in antspyx. The script currently used functions from ANTs. To use this functionality ANTs has to be installed on the machine.
The script main.py is marked as executable in git. If, on execution, you get 'permission denied' permission has to be given manually:
chmod +x main.py
This goes for Unix systems. The Projects has not yet been tested on Windows.
Help Message
For more information read the help message:
usage: main.py [-h] [-d] [-t] [-v] patient output
positional arguments:
patient path to the MRI patient scan with a tumor. In nifti file format and registered into SRI space
output Output Folder to which the results will be saved
options:
-h, --help show this help message and exit
-d, --transform_DTI Additionally transform DTI Atlas fiber tractation in to the patients anatomy
-t, --transform_TS Additionally transform Atlas tissue segementation and probability maps for WM, GM, CSF in to the patients anatomy
-v, --verbose Verbose ...