-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from scitran-apps/outname
Unique outname
- Loading branch information
Showing
5 changed files
with
30 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# vistalab/qa_report_fmri | ||
# scitran/qa_report_fmri | ||
# | ||
# Use modified CNI/NIMS code from @rfdougherty to create a qa_report for a given fmri NIfTI file in Flywheel spec. | ||
# See https://github.com/cni/nims/blob/master/nimsproc/qa_report.py for original source code. | ||
|
@@ -10,51 +10,17 @@ | |
# scitran/qa-report-fmri /flywheel/v0/input -i nifti_file.nii.gz | ||
# | ||
|
||
FROM ubuntu-debootstrap:trusty | ||
FROM scitran/qa-report-fmri:v0 | ||
|
||
MAINTAINER Michael Perry <[email protected]> | ||
|
||
# Install dependencies | ||
RUN apt-get update && apt-get -y install \ | ||
python-dev \ | ||
python-pip \ | ||
git \ | ||
libjpeg-dev \ | ||
zlib1g-dev \ | ||
pkg-config \ | ||
libpng12-dev \ | ||
libfreetype6-dev \ | ||
libblas-dev \ | ||
liblapack-dev \ | ||
libatlas-base-dev \ | ||
gfortran \ | ||
zip \ | ||
unzip | ||
|
||
# Link libs: pillow jpegi and zlib support hack | ||
RUN ln -s /usr/lib/x86_64-linux-gnu/libjpeg.so /usr/lib | ||
RUN ln -s /usr/lib/x86_64-linux-gnu/libz.so /usr/lib | ||
|
||
# Install scitran.data dependencies | ||
RUN pip install pip==8.1.2 \ | ||
&& pip install numpy==1.11.0 \ | ||
&& pip install scipy==0.17.1 \ | ||
&& pip install dipy==0.11.0 \ | ||
&& pip install nibabel==2.0.2 \ | ||
&& pip install nipy==0.4.0 \ | ||
&& pip install matplotlib==1.5.1 | ||
|
||
# Trigger build of font cache | ||
RUN python -c "from matplotlib import font_manager" | ||
|
||
# Make directory for flywheel spec (v0) | ||
ENV FLYWHEEL /flywheel/v0 | ||
RUN mkdir -p ${FLYWHEEL} | ||
COPY run ${FLYWHEEL}/run | ||
COPY manifest.json ${FLYWHEEL}/manifest.json | ||
|
||
# Put the python code in place | ||
COPY qa-report-fmri.py ${FLYWHEEL}/qa_report.py | ||
|
||
ENTRYPOINT ["/flywheel/v0/run"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
#!/bin/bash | ||
# Builds the container. | ||
# The container can be exported using the export.sh script | ||
GEAR=scitran/qa-report-fmri | ||
GEAR=scitran/qa-report-fmri:v0.1.7 | ||
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) | ||
|
||
docker build --no-cache --tag $GEAR $DIR |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,27 @@ | ||
{ | ||
"name": "qa-report-fmri", | ||
"label": "Quality Assurance Report (fMRI)", | ||
"description": "Run QA metrics (displacement, signal spikes) to create a quality assurance report (png) for an fMRI NIfTI using modified CNI/NIMS code from @rfdougherty.", | ||
"maintainer": "Michael Perry <[email protected]>", | ||
"author": "Robert F. Dougherty", | ||
"url": "https://github.com/cni/nims/blob/master/nimsproc/qa_report.py", | ||
"source": "https://github.com/scitran-apps/qa-report-fmri", | ||
"license": "Apache-2.0", | ||
"flywheel": "0", | ||
"version": "0.1.6", | ||
"config": {}, | ||
"inputs": { | ||
"nifti": { | ||
"base": "file", | ||
"type": { | ||
"enum": ["nifti"] | ||
} | ||
} | ||
}, | ||
"custom": { | ||
"docker-image": "scitran/qa-report-fmri" | ||
} | ||
"name": "qa-report-fmri", | ||
"label": "Quality Assurance Report (fMRI)", | ||
"description": "Run QA metrics (displacement, signal spikes) to create a quality assurance report (png) for an fMRI NIfTI using modified CNI/NIMS code from @rfdougherty.", | ||
"maintainer": "Michael Perry <[email protected]>", | ||
"author": "Robert F. Dougherty", | ||
"url": "https://github.com/cni/nims/blob/master/nimsproc/qa_report.py", | ||
"source": "https://github.com/scitran-apps/qa-report-fmri", | ||
"license": "Apache-2.0", | ||
"flywheel": "0", | ||
"version": "0.1.7", | ||
"config": {}, | ||
"inputs": { | ||
"nifti": { | ||
"base": "file", | ||
"description": "Functional NIfTI data file.", | ||
"type": { | ||
"enum": [ | ||
"nifti" | ||
] | ||
} | ||
} | ||
}, | ||
"custom": { | ||
"docker-image": "scitran/qa-report-fmri:v0.1.7" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters