Galaxy | Tool Preview

Krakentools: Convert kraken report file (version 1.2+galaxy1)

KrakenTools is a suite of scripts to be used alongside the Kraken, KrakenUniq, Kraken 2, or Bracken programs. These scripts are designed to help Kraken users with downstream analysis of Kraken results. This program takes a Kraken report file and prints out a krona-compatible TEXT file

Input

A Kraken report file

Output

A krona-compatible TEXT file

Example output:

--no-intermediate-ranks

6298        Unclassified
8           k__Bacteria
4           k__Bacteria     p_Proteobacteria
6           k__Bacteria     p_Proteobacteria    c__Gammaproteobacteria

--intermediate-ranks

6298        Unclassified
79          x__root
0           x__root     x__cellular_organisms
8           x__root     x__cellular organisms   k__Bacteria
4           x__root     x__cellular organisms   k__Bacteria     p__Proteobacteria
6           x__root     x__cellular organisms   k__Bacteria     p__Proteobacteria   c__Gammaproteobacteria