Testing hypothesized neural substrates with lesions
This code has been developed by the High Dimensional Neurology group at the Queen Square Institute of Neurology UCL.
Authors:
Parashkev Nachev;
Patrik Bey
The framework assumes the following file structure:
DATA_DIR
|_lesions
|_lesion1.nii
|_lesion2.nii
|_masks
|_mask1.nii
|_mask2.nii- Matlab
- SPM
- BASH (optional for automated run script usage)
# single function call
run_step1_morphology# single function call
run_step2_features # ---- true substrate regression ---- #
# example use case for true substrate regression model.
REGRESSION_TARGETS=(
"targetfile"
)
BASE_IMAGES=(
"MDN.nii")
TARGET_FILES=(
"MDN.nii")
run_step3_simulations
# ---- false substrate regression ---- #
# example use case for MDN.nii base image and RF.nii showcasing the false substrate regression model.
REGRESSION_TARGETS=(
"targetfile"
)
BASE_IMAGES=(
"MDN.nii")
TARGET_FILES=(
"RF.nii")
run_step3_simulations
# exemplary call for true-substrate regression models
python create_semi_lolli.py /path/to/true-substrate/SignificanceRatios.csv --spoke-color 'darkgrey' --limit 105Patrik Bey, Joe Mole, James K. Ruffle, Amy Nelson, Edgar Chan, Parashkev Nachev, and Lisa Cipolotti, Testing hypothesized neural substrates with lesions, (2026), under review
