An anonymized MRI exemplar
Project description
Abstract
This application simply copies from embedded data a reference normal anonymized MRI of a subject aged 10 years, 06 months, 01 days.
Synopsis
mri10yr06mo01da_normal.python \
[-v <level>] [--verbosity <level>] \
[--version] \
[--man] \
[--meta] \
[--dir <dir>] \
[--splash <splash>] \
<outputDir>
Arguments
[-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.
[--splash <splash>]
An optional splash message to print on startup.
[--dir <dir>]
An optional override directory to copy to the <outputDir>.
Note, if run from a containerized version, this will copy
a directory from the *container* file system.
Run
This plugin can be run in two modes: natively as a python package or as a containerized docker image.
Using PyPI
To run from PyPI, simply do a
pip install mri10yr06mo01da_normal
and run with
mri10yr06mo01da_normal.py --man /tmp
to get inline help. The app should also understand being called with only one positional argument
mri10yr06mo01da_normal.py /destination/directory
Using docker run
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-mri10yr06mo01da_normal mri10yr06mo01da_normal.py \
Thus, getting inline help is:
mkdir out && chmod 777 out
docker run --rm -v $(pwd)/in:/incoming -v $(pwd)/out:/outgoing \
fnndsc/pl-mri10yr06mo01da_normal mri10yr06mo01da_normal.py \
--man \
/outgoing
Examples
Copy the embedded MRI data to the out directory
mkdir out && chmod 777 out
docker run --rm -v $(pwd)/out:/outgoing \
fnndsc/pl-mri10yr06mo01da_normal mri10yr06mo01da_normal.py \
/outgoing
Copy a user specified directory to the out directory
mkdir out && chmod 777 out
docker run --rm -v $(pwd)/out:/outgoing \
fnndsc/pl-mri10yr06mo01da_normal mri10yr06mo01da_normal.py \
--dir /usr/src/data
/outgoing
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file mri10yr06mo01da_normal-1.1.4.tar.gz
.
File metadata
- Download URL: mri10yr06mo01da_normal-1.1.4.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81fa1129f85ddd6092bfcf966d4b593b049be3f243cdd6321c94a2c5e9625eba |
|
MD5 | 000a68d5229c472e37d192a2db9f3d98 |
|
BLAKE2b-256 | db040b76bc485a04a04dd9e1b16fbc42d8f5e5223dc9bbb955f0cc1031c6e4cc |