Skip to content

Conversation

miykael
Copy link
Collaborator

@miykael miykael commented Mar 3, 2013

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.

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 with Nipype. 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 to the command and it works.
chrisgorgo added a commit that referenced this pull request Mar 8, 2013
buildtemplateparallel.sh - issue with input files
@chrisgorgo chrisgorgo merged commit 79c4fdd into nipy:master Mar 8, 2013
@miykael miykael deleted the patch-2 branch January 6, 2018 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants