/pl-mri_convert_ppc64

Primary LanguagePythonMIT LicenseMIT

pl-mri_convert_ppc64

https://travis-ci.org/FNNDSC/mri_convert_ppc64.svg?branch=master

This calls a pre-built PPC64 'mri_convert' that is housed in a base container.

python mri_convert_ppc64.py                                           \
    [-v <level>] [--verbosity <level>]                          \
    [--version]                                                 \
    [--man]                                                     \
    [--meta]                                                    \
    <inputDir>
    <outputDir>

mri_convert_ppc64.py is a ChRIS-based application that...

[-v <level>] [--verbosity <level>]
Verbosity level for app. Not used currently.

[--version]
If specified, print version number.

[--man]
If specified, print (this) man page.

[--meta]
If specified, print plugin meta data.

This plugin can be run in two modes: natively as a python package or as a containerized docker image.

To run from PyPI, simply do a

pip install mri_convert_ppc64

and run with

mri_convert_ppc64.py --man /tmp /tmp

to get inline help. The app should also understand being called with only two positional arguments

mri_convert_ppc64.py /some/input/directory /destination/directory

To run using docker, be sure to assign an "input" directory to /incoming and an output directory to /outgoing. Make sure that the $(pwd)/out directory is world writable!

Now, prefix all calls with

docker run --rm -v $(pwd)/out:/outgoing                             \
        fnndsc/pl-mri_convert_ppc64 mri_convert_ppc64.py                        \

Thus, getting inline help is:

mkdir in out && chmod 777 out
docker run --rm -v $(pwd)/in:/incoming -v $(pwd)/out:/outgoing      \
        fnndsc/pl-mri_convert_ppc64 mri_convert_ppc64.py                        \
        --man                                                       \
        /incoming /outgoing