JingfeiPeng / pl-pdfgeneration

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pl-pdfgeneration

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

An app that takes in prediction results and generates PDF

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

pdfgeneration.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.

[--imagefile]
required field, the name of the patient chest X-Ray image

[--patientId]
patient's id

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

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)/in:/incoming -v $(pwd)/out:/outgoing            \
  local/pl-pdfgeneration pdfgeneration.py --imagefile ex-covid.jpeg             \
  --patientId 1234567  /incoming /outgoing               \

docker build -t local/pl-pdfgeneration .

docker run --rm -v $(pwd)/in:/incoming -v $(pwd)/out:/outgoing local/pl-pdfgeneration pdfgeneration.py --imagefile ex-covid.jpeg --patientId 1234567 /incoming /outgoing

docker run --rm local/pl-pdfgeneration pdfgeneration.py --json

About

License:GNU Affero General Public License v3.0


Languages

Language:Python 51.1%Language:HTML 24.1%Language:CSS 12.8%Language:Shell 6.2%Language:Dockerfile 5.8%