├── .datalad ├── .gitattributes └── config ├── .gitattributes ├── requirements.txt └── Dockerfile /.datalad/.gitattributes: -------------------------------------------------------------------------------- 1 | config annex.largefiles=nothing 2 | -------------------------------------------------------------------------------- /.datalad/config: -------------------------------------------------------------------------------- 1 | [datalad "dataset"] 2 | id = fcb14c91-417b-413a-b343-b16da994f692 3 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | * annex.backend=MD5E 2 | **/.git* annex.largefiles=nothing 3 | * annex.largefiles=((mimeencoding=binary)and(largerthan=0)) 4 | -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- 1 | 2 | dipy 3 | PyNomaly 4 | p2j 5 | antspynet==0.2.0 6 | antspyx==0.3.7 7 | antspymm==0.8.1 8 | antspyt1w==0.8.5 9 | siq==0.3.1 10 | 11 | -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | FROM python:3.10-slim-buster 2 | HEALTHCHECK NONE 3 | 4 | RUN apt-get update && \ 5 | apt-get install -y build-essential cmake libpng-dev pkg-config git 6 | 7 | RUN useradd --create-home --shell /bin/bash dockeruser 8 | USER dockeruser 9 | WORKDIR /home/dockeruser 10 | 11 | COPY requirements.txt . 12 | RUN pip install -r requirements.txt 13 | ENV PYTHONPATH "${PYTHONPATH}:/home/dockeruser/.local/bin" 14 | 15 | RUN mkdir input 16 | RUN mkdir output 17 | 18 | RUN python3 -c 'import ants; import antspyt1w; antspyt1w.get_data( force_download=True )' 19 | RUN python3 -c 'import ants; import antspymm; antspymm.get_data( force_download=True )' 20 | RUN python3 -c 'import ants; import antspyt1w; img=ants.image_read("~/.antspyt1w/28364-00000000-T1w-00.nii.gz"); antspyt1w.hierarchical( img, "/tmp/XXX", labels_to_register=None, is_test=True)' 21 | 22 | --------------------------------------------------------------------------------