
Kaptive Plot¶
- Github repository: https://github.com/tomdstanton/kaptive-plot/
- Documentation https://tomdstanton.github.io/kaptive-plot/
Installation¶
From PyPI:
pip install kaptive-plotInstalled!
From source:
pip install git+https://github.com/tomdstanton/kaptive-plot.gitInstalled!
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
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

Interactive plot¶
kaptive-plot kpsc_k tests/test.json --plotly --format html