Home page for ANTs
Subpages
Child pages | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
Install WSL
Use latest release of Ubuntu
(May not be needed) Set default user to be root (make life simpler with permissions): Start PowerShell => C: => ubuntu config --default-user root (details)
Open linux shell - Ubuntu app in Windows
Install conda
Code Block |
---|
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
bash Miniconda3-latest-Linux-x86_64.sh |
You have to view then agree to terms, then run install responding to various questions
Install ANTs
Code Block |
---|
conda create -n antsenv -c conda-forge ants -y # create env and install ANTs
conda activate antsenv |
Note: all sessions need to start with “conda activate antsenv” to access ANTs
Install FSL in same environment
In Ubuntu shell
Code Block |
---|
# Go into ANTs environment
conda activate antsenv # <- your ANTs env is now on $PATH
# Download the installer
wget -O fslinstaller.py https://fsl.fmrib.ox.ac.uk/fsldownloads/fslconda/releases/fslinstaller.py
# Run the installation
python3 fslinstaller.py --conda --prefix "$CONDA_PREFIX" |
Important! When it asks: Where do you want to install FSL? [/usr/local/fsl/]:
type $CONDA_PREFIX/fsl
Now we need to set the initailization to point to fsl (in this “antsenv” environment)