Skip to content

Unable to upload images for the report when calling ipr_report. #36

@faruqsandi

Description

@faruqsandi

Describe the bug
Unable to upload images for the report when calling ipr_report.

To Reproduce
Steps to reproduce the behavior:

  1. Run command  ipr_report
  2. with input:
{
    "patientId": "Faruq-Test-Build-Report",
    "kbDiseaseMatch": "colorectal cancer",
    "project": "TEST",
    "template": "genomic",
    "ageOfConsent": 35,
    "alternateIdentifier": "fhir-patiet-id-here",
    "biopsyDate": "2021-06-04T16:36:37.279Z",
    "biopsyName": "colon",
    "ploidy": "diploid",
    "presentationDate": "2021-06-04T16:36:37.279Z",
    "subtyping": "adenocarcinoma",
    "images": [
        {
            "key": "mutationBurden.density_snv.primary",
            "path": "/absolute/path/to/pori_suite/mutationBurden.density_snv.primary.png",
            "title": "Mock Data",
            "caption": "Mock Data"
        }
}
  1. See error (unnecessary details omitted):
{'error': {'message': 'Error processing report image mutationBurden.density_snv.primary.png Error: Input file is missing: /home/bit/Playground/xnalabs/pori_suite/mutationBurden.density_snv.primary.png'}}

Expected behaviour
I expected that the image would be successfully uploaded. I see that function post_images never actually called besides in test cases.

Versions (please complete the following information):
 - OS: Windows 11, WSL 2, Ubuntu 22.04.4 LTS.
 - Python: 3.11.9
 - Version: pori_python==0.1.2
 - GraphKB URL: local
 - IPR URL: local

Additional context
I tried to construct a complete JSON for ipr_report that will produce a complete report in each section.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions