Giter Site home page Giter Site logo

darwinai / pl-pdfgeneration Goto Github PK

View Code? Open in Web Editor NEW
1.0 5.0 5.0 697 KB

COVID-Net ChRIS plugin for PDF report generation.

License: GNU Affero General Public License v3.0

Dockerfile 3.06% Python 47.24% HTML 27.85% CSS 14.71% Shell 7.14%
chris-plugin covid-net pdf-generation

pl-pdfgeneration's Introduction

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
DOCKER_BUILDKIT=1 docker build -t local/pl-covidnet-pdfgeneration .
docker run --rm -u $(id -u):$(id -g) \
    -v $PWD/in:/incoming:ro -v $PWD/out:/outgoing:rw \
    darwinai/pl-covidnet covidnet \
    --imagefile ex-covid.jpg /incoming /outgoing

docker run --rm -u $(id -u):$(id -g) \
    -v $PWD/out:/incoming:ro -v $PWD/out:/outgoing:rw \
    darwinai/pl-covidnet-pdfgeneration pdfgeneration \
    --imagefile ex-covid.jpg --patientId 12345678 /incoming /outgoing

pl-pdfgeneration's People

Contributors

boris-nguyen avatar colinywu avatar dcaryll avatar ivantoronto avatar jingfeipeng avatar mslwang avatar rahmatkhah avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

pl-pdfgeneration's Issues

Pdf generation causes notification to show up in notification drawer that corresponds with analysis of image

Describe the bug
Currently, all plugin jobs, both model and PDF generation, are treated the same for the notifications drawer. Since the PDF generation plugin’s output is different, we need to add a case for this plugin if we want to show it.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
image

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Docker (please complete the following information):

  • Docker version: [e.g. 20.10.10, build b485636]
  • docker-compose version: [e.g. 1.29.2, build 5becea4c]

Additional context
Add any other context about the problem here.

Prevent pdfgeneration from causing the same processing animation in the PastAnalyses table as running a prediction

Describe the bug
Prevent PDF generation from causing the same processing animation in the PastAnalyses table as running a prediction.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
image

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Docker (please complete the following information):

  • Docker version: [e.g. 20.10.10, build b485636]
  • docker-compose version: [e.g. 1.29.2, build 5becea4c]

Additional context
Add any other context about the problem here.

Address other PDF generation concerns related to simplicity and compatibility

Describe the bug
Two bugs:

  • not working on PowerPC
  • result PDF does not contain strings, i.e. cannot use pdfgrep, strings, text is not highlightable nor copy-paste-able

Moreover, Webkit is rather bloated (overkill for this task).
A re-implementation with LaTeX or just leaving the output as HTML is preferred.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
Ability to select and/or highlight texts in generated PDFs.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Docker (please complete the following information):

  • Docker version: [e.g. 20.10.10, build b485636]
  • docker-compose version: [e.g. 1.29.2, build 5becea4c]

Additional context
FNNDSC/pl-covidnet-pdfgeneration

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.