Skip to content

A ChRIS FS plugin with a payload of lung CT images suitable for classifcation as COVID, normal, or pneumonia

License

Notifications You must be signed in to change notification settings

FNNDSC/pl-lung_cnp

Repository files navigation

pl-lung_cnp

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

This application houses a set of images that can be used in Normal/COVID/Pneumonia testing of COVIDNET.

lung_cnp is a ChRIS-based application that simply copies a set of DICOM images to its output directory. The plugin is used as a convenient delivery vehicle containing images suitable for testing and further development.

The default behaviour is to copy all the files in the internal/default <dir>

lung_cnp                                                        \
    [--file <onlyCopyThisFile>]                                 \
    [--dir <dir>]                                               \
    [-h] [--help]                                               \
    [--json]                                                    \
    [--man]                                                     \
    [--meta]                                                    \
    [--savejson <DIR>]                                          \
    [-v <level>] [--verbosity <level>]                          \
    [--version]                                                 \
    <outputDir>
[--file <onlyCopyThisFile>]
If specified, only copy this specific file to the output directory.
This course assumes that <onlyCopyThisFile> exists in the container
<dir>.

[--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-lung_cnp lung_cnp --man

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

docker run --rm -u $(id -u)                             \
     -v $(pwd)/out:/outgoing                            \
    fnndsc/pl-lung_cnp lung_cnp                         \
    /outgoing

Build the Docker container:

docker build -t local/pl-lung_cnp .

Run unit tests:

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

About

A ChRIS FS plugin with a payload of lung CT images suitable for classifcation as COVID, normal, or pneumonia

Topics

Resources

License

Stars

Watchers

Forks

Packages