Skip to main content

A python package for parsing, merging, and analyzing Kraken2 output files.

Project description

kraut

Kraut logo

A python package for parsing, merging, and analyzing Kraken2 output files.

Installation

From PyPI:

pip install krautils

From a local checkout:

pip install .

For developer's dependencies:

pip install .[dev]
pytest

Command

kraut parses, filters, merges, tabulates, splits, and plots Kraken2 reports.

  • single-report: filter or reformat one Kraken report.
  • merge-reports: merge reports into a simple comparison table.
  • make-table: build a configurable multi-sample abundance table.
  • alpha: calculate alpha diversity from Kraken or Bracken reports.
  • split-combine-table: split a KrakenTools combined table into ALL/LVL tables.
  • plot-single: plot one sample as an HTML or static composition chart.
  • plot-multi: plot multiple samples as an HTML or static stacked/bubble chart.
kraut alpha reports/*.tsv -o alpha.tsv -p alpha.html --metrics core --add-metrics chao1,ace

Example plots:

Kraut Multi

Kraut Single

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

krautils-0.3.0.tar.gz (25.8 kB view details)

Uploaded Source

Built Distribution

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

krautils-0.3.0-py3-none-any.whl (24.3 kB view details)

Uploaded Python 3

File details

Details for the file krautils-0.3.0.tar.gz.

File metadata

  • Download URL: krautils-0.3.0.tar.gz
  • Upload date:
  • Size: 25.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for krautils-0.3.0.tar.gz
Algorithm Hash digest
SHA256 73b4ad5ac120d56f18d4dbc841761807bc3d9f0c0d8bd2becf18498783cdb9e8
MD5 6c3c034c8a60c8dd1cde799ec64a3788
BLAKE2b-256 74332aa9a65e45d4f806bf1d13fafb51c718fb7ec8b3dccd66b36985f3edd088

See more details on using hashes here.

Provenance

The following attestation bundles were made for krautils-0.3.0.tar.gz:

Publisher: publish.yml on quadram-institute-bioscience/kraut

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

File details

Details for the file krautils-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: krautils-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 24.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for krautils-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f1d15c416797e42497855ee407b360f591b1923d94ba7333340414d858ae3a9b
MD5 a46788b4168bc73012e6e6515c36705c
BLAKE2b-256 73d96838a34db3969015d33e5b201e67b871b7d6810b5dfa93ac252ab7e7b9ca

See more details on using hashes here.

Provenance

The following attestation bundles were made for krautils-0.3.0-py3-none-any.whl:

Publisher: publish.yml on quadram-institute-bioscience/kraut

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