Skip to main content

krakenplot

Testing Status codecov Documentation Build Status PyPi Release Python Versions MyPy Checked Code style: black

Analysis and plotting library for base substitution spectra and signatures.

❯ pip install krakenplot

Features that may be implemented include:

  • Bar plot or scatter plot integration showing the magnitude of sequences assigned to each node in the phylogenetic tree.
  • Method for forcing all counts either up or down a linear branch to simplify sequence classification.
  • Clade collapsing based on taxonomic assignment and phylogenetic order.

Read the documentation at: krakenplot.readthedocs.io

>>> from krakenplot import KrakenSummary
>>> summary = KrakenSummary('sample-report.txt')
>>> summary.newick
'(((Mus musculus musculus:1):1,(Rattus norvegicus albus:1):1,Homo sapiens:1),unclassified:1);'
>>> canvas, coords = summary.toytree.draw(
>>>     width=500,
>>>     height=175,
>>>     tip_labels_color=['red', 'black', 'black', 'black'],
>>>     # Make Carl Linnaeus proud and italicize those species names!
>>>     tip_labels=[f'<i>{l}</i>' for l in summary.toytree.get_tip_labels()])

Simple Tree Example

Metadata

Release files for krakenplot 0.1.0

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

Source distribution (sdist)

Source distribution for krakenplot 0.1.0
File Size Uploaded Provenance Actions
krakenplot-0.1.0.tar.gz 4.7 kB Without provenance Details for krakenplot-0.1.0.tar.gz

Release files / krakenplot-0.1.0.tar.gz

Download URL krakenplot-0.1.0.tar.gz
Size 4.7 kB
Tags Source
SHA-256 checksum
How to use checksums
c6bd44469e7180952b74bdc387b6720ae9df82f9c51a727a71974471116bb766
BLAKE2b-256 checksum
How to use checksums
0fbcb064454187f2aea5c8ca49b48442a70a20d2cba8f79b2fe8d935ce57d965
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.5

Security for krakenplot 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

1 release file No provenance

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