Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions src/pipeline.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,21 @@ export PATH=$PATH:$ANTSPATH:/extra/ANTS/ANTs/Scripts
# Set up pytorch
source /extra/pytorch/bin/activate

# Check input
if [[ ! -f /INPUTS/b0.nii.gz ]]; then
echo ERROR: Could not find required input /INPUTS/b0.nii.gz
exit
elif [[ ! -f /INPUTS/T1.nii.gz ]]; then
echo ERROR: Could not find required input /INPUTS/T1.nii.gz
exit
elif [[ ! -f /INPUTS/acqparams.txt ]]; then
echo ERROR: Could not find required input /INPUTS/acqparams.txt
exit
elif [[ ! -f /extra/freesurfer/license.txt ]]; then
echo ERROR: Could not find required /extra/freesurfer/license.txt
exit
fi

# Prepare input
prepare_input.sh /INPUTS/b0.nii.gz /INPUTS/T1.nii.gz /extra/atlases/mni_icbm152_t1_tal_nlin_asym_09c.nii.gz /extra/atlases/mni_icbm152_t1_tal_nlin_asym_09c_2_5.nii.gz /OUTPUTS

Expand Down