Skip to content

Commit

Permalink
Merge pull request #904 from jnikhilreddy/update-hcpasl-recipe
Browse files Browse the repository at this point in the history
hcpasl container recipe
  • Loading branch information
stebo85 authored Feb 14, 2025
2 parents 1183dc3 + 40db651 commit 1243b42
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 0 deletions.
20 changes: 20 additions & 0 deletions recipes/hcpasl/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
## hcpasl/1.0.0 ##
HCP-ASL is a tool for processing ASL (Arterial Spin Labeling) data following the Human Connectome Project (HCP) minimal preprocessing pipelines. It provides a complete pipeline for processing ASL data, including motion correction, distortion correction, and calibration.

The tool requires FSL, FreeSurfer, Workbench and HCP Pipelines as dependencies which are all included in this container.

Example:
```
process_hcp_asl --help
process_hcp_asl --subid ${Subjectid} --subdir ${SubDir} --mbpcasl ${mbpcasl} --fmap_ap ${SEFM_AP} --fmap_pa ${SEFM_PA} --grads ${GradientCoeffs}
```

More documentation can be found here: https://github.com/physimals/hcp-asl

To run container outside of this environment: ml hcpasl/1.0.0

Citation:
```
If you use HCP-ASL in your research, please cite:
https://github.com/physimals/hcp-asl
```
42 changes: 42 additions & 0 deletions recipes/hcpasl/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
#!/usr/bin/env bash
set -e

export toolName='hcpasl'
export toolVersion='1.0.0'

if [ "$1" != "" ]; then
echo "Entering Debug mode"
export debug=$1
fi

# Auto-accept FSL license
export ACCEPT_FSL_LICENSE=yes

source ../main_setup.sh

neurodocker generate ${neurodocker_buildMode} \
--base-image ubuntu:22.04 \
--pkg-manager apt \
--env DEBIAN_FRONTEND=noninteractive \
--run="printf '#!/bin/bash\nls -la' > /usr/bin/ll" \
--run="chmod +x /usr/bin/ll" \
--run="mkdir -p ${mountPointList}" \
--install wget curl git \
--miniconda \
version=latest \
conda_install="python=3.11 numpy scipy" \
pip_install="git+https://github.com/physimals/hcp-asl.git nibabel" \
--fsl version=6.0.5.1 \
--freesurfer version=7.4.1 \
--install connectome-workbench \
--run="git clone https://github.com/Washington-University/HCPpipelines.git /opt/HCPpipelines" \
--env CARET7DIR=/usr/local/workbench/ \
--env HCPPIPEDIR=/opt/HCPpipelines \
--run="mkdir -p ${mountPointList}" \
--copy README.md /README.md \
--workdir /opt \
> ${imageName}.${neurodocker_buildExt}

if [ "$1" != "" ]; then
./../main_build.sh
fi

0 comments on commit 1243b42

Please sign in to comment.