We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have the following code snippit, as per discussion at #248
convert = { branch.name = "${branch.name}.convert" if(file(input).name.endsWith('.mnc')) { exec """ mincconvert -2 -clobber -compress 9 $input.mnc $output.mnc """ } else if(file(input).name.endsWith('.nii.gz')) { transform('.nii.gz') to('.convert.mnc') { exec """ nii2mnc -clobber $input $output.mnc """ } } else if(file(input).name.endsWith('.nii')) { transform('.nii') to('.convert.mnc') { exec """ nii2mnc -clobber $input $output.mnc """ } } }
Providing the following inputs:
../GAD_1.mnc ../GAD_2.nii ../GAD_3.nii.gz
Results in the following output filenames:
nii2mnc -clobber ../GAD_2.nii GAD_2.convert.mnc nii2mnc -clobber ../GAD_3.nii.gz GAD_3.convert.mnc mincconvert -2 -clobber -compress 9 ../GAD_1.mnc GAD_1.convert.mnc
However the naming of the stages is incorrect:
# Stage convert (GAD_3.nii) # Stage convert (GAD_2) # Stage convert (GAD_1)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I have the following code snippit, as per discussion at #248
Providing the following inputs:
Results in the following output filenames:
However the naming of the stages is incorrect:
The text was updated successfully, but these errors were encountered: