Skip to content

Commit 22521af

Browse files
committed
ENH: initial commit
0 parents  commit 22521af

File tree

66 files changed

+40753
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+40753
-0
lines changed

Dockerfile

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
# This Dockerfile is based on the dockerfile 'fmriprep' from the Poldrack
2+
# Lab (https://github.com/poldracklab/fmriprep).
3+
#
4+
# This means that the same copyrights apply to this Dockerfile, as they do for
5+
# the above mentioned dockerfile. For more information see:
6+
# https://github.com/miykael/nipype_tutorial
7+
FROM andrewosh/binder-base
8+
9+
MAINTAINER Michael Notter <[email protected]>
10+
11+
# Switch to root user for installation
12+
USER root
13+
14+
#---------------------------------------------
15+
# Update OS dependencies and setup neurodebian
16+
#---------------------------------------------
17+
USER root
18+
RUN ln -snf /bin/bash /bin/sh
19+
ARG DEBIAN_FRONTEND=noninteractive
20+
RUN apt-get update && \
21+
apt-get install -yq --no-install-recommends bzip2 ca-certificates curl git tree unzip wget xvfb zip
22+
ENV NEURODEBIAN_URL http://neuro.debian.net/lists/jessie.de-md.full
23+
RUN curl -sSL $NEURODEBIAN_URL | tee /etc/apt/sources.list.d/neurodebian.sources.list && \
24+
apt-key adv --recv-keys --keyserver hkp://pgp.mit.edu:80 0xA5D32F012649A5A9 && \
25+
apt-get update -qq
26+
27+
#---------------------
28+
# Install FSL and AFNI
29+
#---------------------
30+
USER root
31+
RUN apt-get update && \
32+
apt-get install -y -qq --no-install-recommends fsl-core fsl-atlases afni
33+
ENV FSLDIR=/usr/share/fsl/5.0 \
34+
FSLOUTPUTTYPE=NIFTI_GZ \
35+
FSLMULTIFILEQUIT=TRUE \
36+
POSSUMDIR=/usr/share/fsl/5.0 \
37+
LD_LIBRARY_PATH=/usr/lib/fsl/5.0:$LD_LIBRARY_PATH \
38+
FSLTCLSH=/usr/bin/tclsh \
39+
FSLWISH=/usr/bin/wish \
40+
AFNI_MODELPATH=/usr/lib/afni/models \
41+
AFNI_IMSAVE_WARNINGS=NO \
42+
AFNI_TTATLAS_DATASET=/usr/share/afni/atlases \
43+
AFNI_PLUGINPATH=/usr/lib/afni/plugins \
44+
PATH=/usr/lib/fsl/5.0:/usr/lib/afni/bin:$PATH
45+
46+
#-----------------------------------------------------
47+
# Update conda and pip dependencies (including Nipype)
48+
#-----------------------------------------------------
49+
RUN conda update conda --yes --quiet
50+
RUN conda config --add channels conda-forge
51+
RUN conda install --yes --quiet ipython \
52+
pip \
53+
jupyter \
54+
notebook \
55+
nb_conda \
56+
nb_conda_kernels \
57+
matplotlib \
58+
graphviz \
59+
pandas \
60+
seaborn \
61+
nipype
62+
RUN python -c "from matplotlib import font_manager"
63+
64+
# Clean up Python3 environment and delete not needed packages
65+
RUN conda remove --name python3 --all --yes --quiet && \
66+
conda remove qt pyqt scikit-image scikit-learn sympy --yes --quiet && \
67+
conda clean -tipsy
68+
69+
#---------------------------------------------
70+
# Install graphviz and update pip dependencies
71+
#---------------------------------------------
72+
USER root
73+
RUN apt-get install -yq --no-install-recommends graphviz
74+
USER $NB_USER
75+
RUN pip install --upgrade --quiet pip && \
76+
pip install --upgrade --quiet nipy \
77+
rdflib \
78+
--ignore-installed && \
79+
rm -rf ~/.cache/pip
80+
81+
#-----------------------------------------------------
82+
# Clear apt cache and delete unnecessary folders
83+
#-----------------------------------------------------
84+
RUN apt-get clean remove -y && \
85+
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /boot /media /mnt /opt /srv
86+
87+
ENV SHELL /bin/bash

LICENSE

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
Copyright (c) 2017,
2+
All rights reserved.
3+
4+
Redistribution and use in source and binary forms, with or without
5+
modification, are permitted provided that the following conditions are met:
6+
7+
* Redistributions of source code must retain the above copyright notice, this
8+
list of conditions and the following disclaimer.
9+
10+
* Redistributions in binary form must reproduce the above copyright notice,
11+
this list of conditions and the following disclaimer in the documentation
12+
and/or other materials provided with the distribution.
13+
14+
* Neither the name of crn_base nor the names of its
15+
contributors may be used to endorse or promote products derived from
16+
this software without specific prior written permission.
17+
18+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
19+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
22+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
24+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
25+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
26+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Nipype Tutorial Notebooks
2+
3+
The Nipype tutorial runs on [mybinder.org](http://mybinder.org/) and can be started by clicking on the following button: [![Binder](http://mybinder.org/badge.svg)](http://mybinder.org/repo/miykael/nipype_tutorial)
4+
5+
The Dockerfile that creates the nipype environment on mybinder is based on the docker image [miykael/nipype_basic](https://hub.docker.com/r/miykael/nipype_basic/).
6+
7+
8+
## The Dataset
9+
10+
The data used for this tutorial is from [openfmri.org](https://openfmri.org/) and is structured according the new and fancy [Brain Imaging Data Structure (BIDS)](http://bids.neuroimaging.io/).
11+
12+
The dataset ds102 used for this tutorial was shortened to only three subjects, *sub-01*, *sub-02* and *sub-03*. For more information about the dataset, see the [description on openfmri.org](https://openfmri.org/dataset/ds000102/).
13+
14+
15+
## Feedback, Help & Support
16+
17+
If you want to help us with this tutorial or have any questions, fell free to fork our repo [github.com/miykael/nipype_tutorial](https://github.com/miykael/nipype_tutorial) or interact with other contributors on the slack channel [brainhack.slack.com/messages/nipype/](https://brainhack.slack.com/messages/nipype/)

0 commit comments

Comments
 (0)