Skip to content

Latest commit

 

History

History
139 lines (89 loc) · 3.93 KB

README.rst

File metadata and controls

139 lines (89 loc) · 3.93 KB

pl-lungct

https://img.shields.io/docker/v/fnndsc/pl-lungct?sort=semver https://img.shields.io/github/license/fnndsc/pl-lungct

This plugin copies canned data to its output and is primarily of use in the COVID-NET workflow.

lungct simply copies internal lungCT DICOM data dir to the <outputDir>. If an optional [--dir <dir>] is passed, then contents of <dir> are copied instead.

lungct                                                          \
    [--dir <dir>]                                               \
    [-h] [--help]                                               \
    [--json]                                                    \
    [--man]                                                     \
    [--meta]                                                    \
    [--savejson <DIR>]                                          \
    [-v <level>] [--verbosity <level>]                          \
    [--version]                                                 \
    <outputDir>
[--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.

[-h] [--help]
If specified, show help message and exit.

[--json]
If specified, show json representation of app and exit.

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

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

[--savejson <DIR>]
If specified, save json representation file to DIR and exit.

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

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

Getting inline help is:

docker run --rm fnndsc/pl-lungct lungct --man

Build the Docker container:

docker build --build-arg UID=$UID -t local/pl-lungct .

Assuming you are in the root dir of the source repo:

docker run -ti                                                   \
 -v $(pwd)/lungct:/usr/local/lib/python3.8/dist-packages/lungct  \
 -v $(pwd)/out:/outgoing                                         \
 local/pl-lungct lungct /outgoing

You need you need to specify input and output directories using the -v flag to docker run.

# Here, files are copied as localuser
mkdir out && chmod 777 out
docker run --rm -u $(id -u)                                 \
    -v  $(pwd)/out:/outgoing                                \
    fnndsc/pl-lungct lungct                                 \
    /outgoing
# Here, files are copied as root
mkdir out && chmod 777 out
docker run --rm                                             \
    -v  $(pwd)/out:/outgoing                                \
    fnndsc/pl-lungct lungct                                 \
    --dir /etc                                              \
    /outgoing
https://raw.githubusercontent.com/FNNDSC/cookiecutter-chrisapp/master/doc/assets/badge/light.png