ANTs: antsRegistrationSyNQuick.sh complains about bad arithmetic operator.
Operating system and version
NAME=“CentOS Linux” VERSION=“7 (Core)” ID=“centos” ID_LIKE=“rhel fedora” VERSION_ID=“7” PRETTY_NAME=“CentOS Linux 7 (Core)”
CPU architecture
x86_64 (PC, Intel Mac, other Intel/AMD)
ANTs code version
ants-2.5.0
ANTs installation type
Other (please specify below)
Summary of the problem
I cannot remember if I built ATNS or downloaded binaries, sorry.
I get the following warning:
WARNING /opt/ants/ants-2.5.0/bin/antsRegistrationSyNQuick.sh: line 447: ANTSVERSION=ants-2.5.0: syntax error: invalid arithmetic operator (error token is ".5.0")
Commands to reproduce the problem.
I create this script with Python and run it with subprocess:
export OMP_NUM_THREADS=1 && export ANTSVERSION=ants-2.5.0
antsRegistrationSyNQuick.sh -d 3 \
-m /home/foo/pijp-pet/pet_templates/Template_FBP_all.nii.gz \
-f /m/Dev/ADNIDII-PET/pijp-pet/ADNIDII-0-3028-1b12/ADNIDII-0-3028-1b12.PET-Amy_moco_ave.nii.gz \
-t a \
-y 1 \
-o /m/Dev/ADNIDII-PET/pijp-pet/ADNIDII-0-3028-1b12/ADNIDII-0-3028-1b12.PET-Amy.template2Pet
Output of the command with verbose output.
There is no verbose option. Further more, I suspect the help prints to stderr as I cannot pipe to less or grep the help.
Data to reproduce the problem
Not sure data is required.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 20 (10 by maintainers)
It does, I just haven’t done one yet, and I wish I had a nicer templating system for that
Indeed that’s what I do for the system I manage at work, but I wanted to provide something for people to use that could work easily on a single system.
I have deployed this module system across a shared deployment over NFS as well. I should make adjust the tag system so that it’s easier to make that happen without hackery.
Thanks.
With the availability of binaries from upstream in many cases now, I’ve decided it’s no longer worth the effort to build all the software from scratch unless I absolutely have to.
If I did want to do a module system building from source, I would use https://spack.readthedocs.io/en/latest/ and contribute missing recipes there for more neuroimaging software.
Should you have a need to setup modules for your lab, https://github.com/gdevenyi/NeuroAnsible/
|&mergesstderrandstdoutinto a single pipe to the next process in line such aslessYou can set threading through the
-noption, or use the environment variableITK_GLOBAL_DEFAULT_NUMBER_OF_THREADS. ANTs doesn’t use OMP threadsYou can do
|& lessto merge them into a single stdout stream to catch everything