This Readme covers release 26.0.* of the LORIS Imaging Insertion Pipeline for Ubuntu or CentOS systems
This repo accompanies the LORIS neuroimaging data platform main repo, release 24.1.*.
For documentation and detailed setup information, please see the LORIS-MRI documentation for your installed version.
This repo can be installed on the same VM as the main LORIS codebase, or on a different machine such as a designated fileserver where large imaging filesets are to be stored.
On Ubuntu, DICOM toolkit will be installed by the imaging install script (step 4 below). This script will apt-get install dcmtk.
For CentOS: The LORIS wiki Imaging setup page (see Section 1, installing codebase) includes links to older transcripts for CentOS installation and notes on dependencies including DICOM toolkit.
The following installation should be run by the $lorisadmin
user. sudo
permission is required.
See aces/Loris README.md for further information.
# ubuntu build essential packages useful for building
sudo apt install build-essential checkinstall cmake
Update Perl dependency with:
sudo perl -MCPAN -e shell
# then enter these two commands
cpan[1]> install CPAN
cpan[2]> reload cpan
sudo mkdir -p /data/$projectname
sudo mkdir -p /opt/$projectname/bin/mri
sudo chown -R lorisadmin:lorisadmin /data/$projectname
sudo chown -R lorisadmin:lorisadmin /opt/$projectname
cd /opt/$projectname/bin
Get the code: Download the latest release from the
releases page
and extract it to /opt/$projectname/bin/mri
pip
and venv
sudo apt install python3.11 python3.11-dev python3.11-venv
sudo apt install python3-pip
sudo apt install libmysqlclient-dev
# deps
sudo apt-get install libc6 libstdc++6 imagemagick perl
# Install required dependencies such as _imagemagick_.
sudo apt-get install libgl1-mesa-glx libglu1-mesa
Download the MINC pre-compiled package for your operating system from http://bic-mni.github.io/.
Then install the MINC toolkit package:
# main minc lib
sudo dpkg -i minc-toolkit-<version>.deb
Check the model is installed in /opt/minc/share
Then source the MINC toolkit environment, where $mincToolsDirectory
is the path where the MINC toolkit is installed (e.g. /opt/minc/
OR /opt/minc/$mincToolsVersion/
for more recent installs)
# bash
source $mincToolsDirectory/minc-toolkit-config.sh
# tcsh
source $mincToolsDirectory/minc-toolkit-config.csh
bic-mni-models
and beast
data and model packages for you operation system.sudo dpkg -i bic-mni-models-<version>.deb
sudo dpkg -i beast-library-<version>.deb
# also check they are installed in `/opt/minc/share`
cd /opt/$projectname/bin/mri/install/
bash ./imaging_install.sh
You will be asked for the following input:
If the imaging install script reports errors in creating directories
(due to /data/
mount permissions), review and manually execute
mkdir/chmod/chown
commands starting at
imaging_install.sh:L97
Note: The installer will allow Apache to write to the /data/
and /opt/
directories by
adding user lorisadmin
to the Apache linux group. To ensure this change takes
effect, log out and log back into your terminal session before running the
imaging pipeline. The installer will also set Apache group ownership of certain
/data/
and /opt/
subdirectories.
For HRRT PET, install tpcclib. Follow the install instructions.
Ensure that /home/lorisadmin/.bashrc
includes the statement:
source /opt/$projectname/bin/mri/environment
Then source the .bashrc
file.
INSTALLATION COMPLETE!
Please refer to the Install section in the LORIS-MRI documentation for your installed version for:
imaging_install.sh
(Section 2.3).