Skip to main content

Plotting library for Kaptive, the tool for in silico serotyping

Project description

Kaptive

Release Build status codecov Commit activity License

Kaptive Plot

Installation

From PyPI:

$ pip install kaptive-plot
---> 100%
Installed!

From source:

$ pip install git+https://github.com/tomdstanton/kaptive-plot.git
---> 100%
Installed!

Usage

$ kaptive-plot -h

usage: kaptive-plot <db> <json>

Plotting library for Kaptive, the tool for in silico serotyping

Inputs:

  db              Database path or keyword used to generate results
  json            Kaptive results JSON file or "-" for stdin

Outputs:

  -o, --out       Output path (default: .)
  -f , --format   Output format: png, svg or html (default: png)
  -p, --plotly    Use plotly instead of matplotlib (default: False)

Other options:

  -v, --version   show program's version number and exit
  -h, --help      Show this help message and exit

For more help, visit: https://tomdstanton.github.io/kaptive-plot

Examples

Static plot

kaptive-plot kpsc_k tests/test.json

test_plot

Interactive plot

kaptive-plot kpsc_k tests/test.json --plotly --format html
{"file_path": "docs/assets/test.json"}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kaptive_plot-0.0.1.tar.gz (445.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kaptive_plot-0.0.1-py3-none-any.whl (23.9 kB view details)

Uploaded Python 3

File details

Details for the file kaptive_plot-0.0.1.tar.gz.

File metadata

  • Download URL: kaptive_plot-0.0.1.tar.gz
  • Upload date:
  • Size: 445.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for kaptive_plot-0.0.1.tar.gz
Algorithm Hash digest
SHA256 5c8f7d44df40f41e9c959d731e593495d5b39222a217a3849201a87961105ffc
MD5 a931cda53ba07e9bf9d214d436de1eca
BLAKE2b-256 950f0dacfd392a788d4c585d56717afff9b9485abe82aaad573ab2dd19c21c19

See more details on using hashes here.

Provenance

The following attestation bundles were made for kaptive_plot-0.0.1.tar.gz:

Publisher: python-publish.yml on tomdstanton/kaptive-plot

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file kaptive_plot-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: kaptive_plot-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 23.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for kaptive_plot-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b7f22b5ad62168e9db13309e62333f4d0e6769ad43a8b423f5d1e473aa04fae7
MD5 54ee83462f64b88586c9e85191ea1443
BLAKE2b-256 98348843857425199ffa47bc11976d14b674a3f32102fba6f5457614cac10d6b

See more details on using hashes here.

Provenance

The following attestation bundles were made for kaptive_plot-0.0.1-py3-none-any.whl:

Publisher: python-publish.yml on tomdstanton/kaptive-plot

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page