buildtemplateparallel.sh - issue with input files #527
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
If I have an array of inputs like:
in_files = ['
/data/subject_1/struct.nii','/data/subject_2/struct.nii','~/data/subject_3/struct.nii']The current code would turn this into the command:
buildtemplateparallel.sh -d 3 -n 1 -g 0.250000 -i 3 -m 30x90x20 -j 4 -o PREFIX -c 2 -r 1 -s PR -t GR struct.nii struct.nii struct.nii
Like this, I'm not able to run the buildtemplateparallel interface. I think it crashes because it can't find the files. My commit changes the command to the following:
buildtemplateparallel.sh -d 3 -n 1 -g 0.250000 -i 3 -m 30x90x20 -j 4 -o PREFIX -c 2 -r 1 -s PR -t GR ~/data/subject_1/struct.nii ~/data/subject_2/struct.nii ~/data/subject_3/struct.nii
Like this the full path to structural images is passed on to the command and the script runs perfectly.