AFNI
Checking available versions
module avail afni
Using AFNI (from forsyth)
Load AFNI with module load forsyth/afni
.
After loading the module, all AFNI tools are made accessible in the shell session.
Installing AFNI
- Download AFNI installer:
curl -O https://afni.nimh.nih.gov/pub/dist/bin/misc/@update.afni.binaries
- Install the CentOS 7 package to
/sw/contrib/labname-src/afni
(replacingmylabname
with the name of your lab):
TARGET="/sw/contrib/mylabname-src/afni/"
tcsh @update.afni.binaries -package linux_centos_7_64 -do_extras -bindir "$TARGET"
- Install required R libraries to
/sw/contrib/mylabname-src/afni/Rlibs
:
export R_LIBS="$TARGET/Rlibs"
mkdir -p "$R_LIBS"
rPkgsInstall -pkgs ALL
- Create an Lmod .lua module file for AFNI with a text editor:
/sw/contrib/modulefiles/mylabname/afni.lua
(myModuleName())
helplocal base = pathJoin(
"/sw/contrib",
string.gsub(myModuleName(), "/.*$", "-src"),
string.gsub(myModuleName(), "^.*/", ""),
()
myModuleVersion)
("PATH", base)
append_path("R_LIBS", r_libs)
setenv
if (mode() == "load") then
("R_LIBS set to " .. r_libs)
LmodMessage("------------------------------------------------------------")
LmodMessage("On initial use, run the following:")
LmodMessage(" suma -update_env")
LmodMessageend
("Name: " .. string.gsub(myModuleName(), "^.*/", ""))
whatis("Version: " .. myModuleVersion()) whatis
Check that the module is available and load it:
module -I spider mylabname/afni module load mylabname/afni
- 1
-
Lmod takes some time to cache available modules. You can use the
-I
option to force Lmod to check for new modules.