Skip to main content

Example report (eng)

Chanjo Report

Automatically generate basic coverage reports from Chanjo SQL databases. This plugin installs as a subcommand ("report") to the Chanjo command line interface.

Usage

Chanjo Report supports a number of output formats: tabular, PDF, and HTML. To print a PDF coverage report for a group of samples "WGS-prep" do:

$ chanjo report --render pdf --group "WGS-prep" > ./coverage-report.pdf

Features

Supported output formats

Chanjo Reports multiple output formats:

  • tabular: easily parsable and pipeable
  • PDF: easily distributable (for humans)
  • HTML: easily deliverable on the web

Supported languages (translations)

The coverage report (HTML/PDF) can be render is the following languages:

  • English
  • Swedish

Motivation

We are using the output from Chanjo at Clincal Genomics to report success of sequencing across the exome based on coverage. Our customers, clinicians mostly, are specifically interested in knowing to what degree their genes of interest are covered by sequencing along with some intuitive overall coverage metrics. They want the output in PDF format to file it in their system.

As a side effect of finding it easiest to convert HTML to PDF, Chanjo Report has a built in Flask server that can be used to render reports dynamically and even be plugged into other Flask servers as a Blueprint.

Installation

The latest version of Chanjo-report can be installed by cloning and installing the repository from Clinical Genomics github:

$ git clone https://github.com/Clinical-Genomics/chanjo-report.git
$ cd chanjo-report
$ pip install --editable .

Demo instance with Docker

To run a local demo with Docker, ensure you have a Docker engine running. If you do not have Docker set up, we can recommend Docker Desktop (https://www.docker.com/products/docker-desktop/).

Then use make with the repository Makefile to build and run:

make build
make setup
make report

Point your browser to http://127.0.0.1:5000 and find the demo samples.

Comprehensive instructions

We provide a Dockerfile to run the server in a container. To run a demo instance of the server with a pre-populated database consisting of a case with 3 samples, clone the repository using the following commands:

$ git clone https://github.com/Clinical-Genomics/chanjo-report.git
$ cd chanjo-report

Then you could make use of the services present in the Docker-compose file following these 3 steps:

  1. Build the images

    make build
    
  2. Launch chanjo to create a populate the database with demo data

    make setup
    
  3. Launch the chanjo-report server

    make report
    

A running instance of the server should now be available at the following url: http://localhost:5000/.

In order to generate a report containing all 3 demo samples, use the respective request args: http://localhost:5000/report?sample_id=sample1&sample_id=sample2&sample_id=sample3

Please be aware that if you are building and running the Dockerized version of chanjo-report, there might be issues on macOS if your processor is Apple silicon (or another ARM64 based architecture). In order to build the chanjo-report image in the ARM64 architecture, you can set the environment variable DOCKER_DEFAULT_PLATFORM:

export DOCKER_DEFAULT_PLATFORM=linux/amd64
make build
make setup
make report

License

MIT. See the LICENSE file for more details.

Contributing

Anyone can help make this project better - read CONTRIBUTING to get started!

Metadata

Release files for chanjo-report 4.10.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for chanjo-report 4.10.2
File Size Uploaded
chanjo-report-4.10.2.tar.gz 27.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for chanjo-report 4.10.2
File Interpreter ABI Platform
chanjo_report-4.10.2-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 53.5 kB

Release files / chanjo-report-4.10.2.tar.gz

Download URL chanjo-report-4.10.2.tar.gz
Size 27.1 kB
Tags Source
SHA-256 checksum
How to use checksums
7c446aa046173b3ff19d1f93702d0b600bd154de3509dd74d70e12b71f4ac544
BLAKE2b-256 checksum
How to use checksums
ee89fc20713fffd1fdfc563027346e1e69a127ef3fdcb7dbf35ba9763732b351
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Release files / chanjo_report-4.10.2-py2.py3-none-any.whl

Download URL chanjo_report-4.10.2-py2.py3-none-any.whl
Size 26.5 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
bfa58160326c86e43210a3e56f48aa8c1c7760ae286d3900b141e85846de8d97
BLAKE2b-256 checksum
How to use checksums
aa3c09858750f97177d74fa8e9d3eb1d310928764941935ab81db9631d795ef6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Release history Release notifications | RSS feed

4.12.0

2 release files

4.11.5

2 release files

4.11.4

2 release files

4.11.2

2 release files

4.11

2 release files

This release

4.10.2 This release

2 release files

4.10.1

2 release files

4.9.3

2 release files

4.9.2

2 release files

4.9.1

2 release files

4.9.0

2 release files

4.2.0

2 release files

4.1.0

2 release files

4.0.0

2 release files

3.0.5

2 release files

3.0.4

2 release files

3.0.3

2 release files

3.0.2

2 release files

3.0.1

2 release files

3.0.0

2 release files

2.6.1

2 release files

2.6.0

2 release files

2.5.1

2 release files

2.5.0

2 release files

2.4.2

2 release files

2.4.1

2 release files

2.4.0

2 release files

2.3.2

2 release files

2.3.1

2 release files

2.3.0

2 release files

2.2.1

2 release files

2.2.0

2 release files

2.1.0

2 release files

2.0.1

2 release files

2.0.0

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.0.13

2 release files

0.0.12

2 release files

0.0.10

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page