Skip to content

🐦 spideog - Command line utility for Kraken2 reports.

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

jeanmanguy/spideog

Repository files navigation

🐦 spideog - Command line utility for Kraken2 reports.

lastest version

Build Status Rust

This is a work in progress. The commands may change between released versions, please read the CHANGELOG.

Goals

The first goal of this project is to convert Kraken reports into standard file formats that can be easily read with R to allow people to craft thier own data visualisations and compute statistics more easily using the tidyverse, vegan, ape, and ggtree/treeio. The second goal is to get summary information from the Kraken reports directly from the command line.

Supports Kraken reports from Kraken2 or from Bracken.

Installation

Binaries for Linux, OSX, and Windows are available in the Github release page. No dependencies are required.

Usage

spideog --help
spideog --version
spideog convert-tree <REPORT_FILE>
spideog convert-abundance <REPORT_FILE>
spideog combine-trees <REPORT_FILE>...
spideog combine-abundances <REPORT_FILE>...

Windows: you will need to add the .exe extension to the commands.

convert-tree

Convert the taxonomy tree of a Kraken report to the Newick format.

The following command will generate the file converted.tree.

spideog convert-tree sample.kreport --output converted.tree

Example files

Options

  • --has-headers necessary if the input report has headers
  • --output output file path
  • --overwrite force overwriting if the output file already exist
  • --report-format input format (default: Kraken) [Only Kraken reports are supported at the moment]
  • --format output format (default: newick) [Only newick is supported at the moment]

convert-abundance

Convert the abundance data of a Kraken report to the CSV format.

The following command will generate the file converted.csv.

spideog convert-abundance sample.kreport --output converted.csv

Example files

Options

  • --has-headers necessary if the input report has headers
  • --output output file path
  • --overwrite force overwriting if the output file already exist
  • --report-format input format (default: Kraken) [Only Kraken reports are supported at the moment]
  • --format output format (default: CSV) [Only CSV is supported at the moment]

combine-trees

Combine and convert taxonomy trees from multiple Kraken report (e.g. from different samples of the same experiment) to the Newick format.

The following command will generate the file combined.tree.

spideog combine-trees sample.kreport sample_2.kreport --output combined.tree

Example files

Options

  • --has-headers necessary if the input reports have headers
  • --output output file path
  • --overwrite force overwriting if the output file already exist
  • --report-format input format (default: Kraken) [Only Kraken reports are supported at the moment]
  • --format output format (default: newick) [Only newick is supported at the moment]

combine-abundances

Combine and convert abundance data from multiple Kraken report (e.g. from different samples of the same experiment) to the CSV format.

The following command will generate the file combined.csv.

spideog combine-abundances sample.kreport sample_2.kreport --add-missing-taxons --output combined.csv

Example files

Options

  • --add-missing-taxons add missig taxons in some reports but present in other with zero values
  • --has-headers necessary if the input report has headers
  • --output output file path
  • --overwrite force overwriting if the output file already exist
  • --report-format input format (default: Kraken) [Only Kraken reports are supported at the moment]
  • --format output format (default: CSV) [Only CSV is supported at the moment]

Contributing

The project is maintained by Jean Manguy. Please submit a bug report or a feature request on the Github issues page.

License

spideog is distributed under the terms of both the MIT license and the Apache License (Version 2.0).

See LICENSE-APACHE and LICENSE-MIT for details.

Credits

Cover picture: Robin CC BY Greg Clarke