I have recently installed ANTs and was planning on running brain extraction. But needed to set my Path first, what commands could I use on Linux terminal using tcsh?
I attempted the following command:
set path= (/path/to/home/bin/ants/bin path)
set path ANTSPATH= /path/to/home/bin/ants/bin
But received an error message when I ran antsBrainExtraction.sh.
Could you maybe include the complete error message, as this helps folks here understanding the problem better!?
HTH, best, Peer
P.S.: Just a small add on, but could you maybe include tags in all further posts, as this allows for better documentation, indexing and searches, as well as pointing experts, that will most likely be able to help you, into the direction of your question.
Thank you so much!!! I was able to export ANTs, and my terminal now recognizes its commands! I really appreciate it.
I’m not able to use bash shell, because I had AFNI installed on my system which requires a tcsh shell. So I had to change from bash to tcsh.
For running different scripts of ANTs, such as Brain Extraction, I copied all the scripts to the ants folder in bin. Do I have to modify the scripts for them to run through commands in terminal?
When I type in antsBrainExtraction.sh, I receive the following message:
we can’t find the N4 program – does not seem to exist. please (re)define $ANTSPATH in your environment.
Fair enough. However, even though AFNI might need tcsh “under the hood”, you can still use bash in your all day life (no tcsh hate, just saying). Just include export PATH=/path/to/afni/bin:$PATH in your .bashrc or .bash_profile file.
While you’re working on your .bashrc or .bash_profile file, also include export PATH=/path/to/antsbin/bin:$PATH export ANTSPATH=/path/to/antsbin/bin/
That should enable you to extract some brains with ANTs and use AFNI.