From 8b10761d1db87fc8d244b721bd870a2cbacd846a Mon Sep 17 00:00:00 2001 From: Ashley Stewart Date: Fri, 9 Aug 2024 11:17:47 +1000 Subject: [PATCH] QSMxT: Add dcm2niix support for openjpeg --- recipes/qsmxt/build.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/recipes/qsmxt/build.sh b/recipes/qsmxt/build.sh index 20fdb555..e5d73078 100755 --- a/recipes/qsmxt/build.sh +++ b/recipes/qsmxt/build.sh @@ -51,7 +51,13 @@ neurodocker generate ${neurodocker_buildMode} \ --workdir="/opt" \ --env SUBJECTS_DIR="/tmp" \ --ants version=2.4.3 \ - --dcm2niix method=source version=v1.0.20240202 \ + --workdir="/opt/dcm2niix" \ + --run="git clone --branch v1.0.20240202 --depth 1 https://github.com/rordenlab/dcm2niix.git . \ + && mkdir build && cd build \ + && cmake -DZLIB_IMPLEMENTATION=Cloudflare -DUSE_JPEGLS=ON -DUSE_OPENJPEG=ON .. \ + && make \ + && make install" \ + --workdir="/opt" \ --miniconda version=4.7.12.1 conda_install='python=3.8' \ --run="rm -rf /usr/bin/python3.8 \ && ln -s /opt/miniconda-latest/bin/python /usr/bin/python3.8 \