.afnirc and .sumarc files

Hello,

What are the purposes of the .afnirc and .sumarc files?

When I run the command:

afni_system_check.py -check_all

I see this in the summary:

  • consider running: cp /installed/AFNI/bin/AFNI.afnirc ~/.afnirc
  • consider running “suma -update_env” for .sumarc

Additionally, looking at the suma -help options, it makes reference to installing suma template datasets to the user’s $HOME directory. Why is this? Is there a way to change it?

Thanks.

Michael

They are files that hold AFNI and SUMA environment variable settings; those files hold a lot of nice defaults, and then you can add/subtract/modify them as you wish.

A list of AFNI environment variables and default values is here:
https://afni.nimh.nih.gov/pub/dist/doc/program_help/README.environment.html
and the SUMA environment variables are mainly described in that file itself.

The AFNI/SUMA installation instructions describe how you can install each:
$ cp $HOME/abin/AFNI.afnirc $HOME/.afnirc
(assuming you are following hte main instructions for binary installation)
and
$ suma -update_env

Using environment variables, you can change where things like reference data sets are looked for on you system, yes.

–pt

ptaylor Wrote:

They are files that hold AFNI and SUMA environment
variable settings; those files hold a lot of nice
defaults, and then you can add/subtract/modify
them as you wish.

I see. Do I lose anything by not copying this to a ~/.afnirc . All our paths, environment variables are setup in our .cshrc files. What is the advantage of also including the .afnirc file? In the help documentation it describes how the .cshrc takes precedence over the .afnirc file.

A list of AFNI environment variables and default
values is here:
https://afni.nimh.nih.gov/pub/dist/doc/program_hel
p/README.environment.html
and the SUMA environment variables are mainly
described in that file itself.

The AFNI/SUMA installation instructions describe
how you can install each:
$ cp $HOME/abin/AFNI.afnirc $HOME/.afnirc
(assuming you are following hte main instructions
for binary installation)
and
$ suma -update_env

Could we also setup the SUMA environment variables in the .cshrc? Would that work? We prefer to keep everything consolidated in one file (i.e., the .cshrc file).

Using environment variables, you can change where
things like reference data sets are looked for on
you system, yes.

–pt

Thanks, pt.

Michael