This bash script is used to generate a one page KRONA html from a rarified multi samples OTU table.
This bash script is used to generate a one page KRONA pie html file from a rarified multi samples OTU table.

The OTU table generated by QIIME renown ‘otu_table.tsv’ has to have the following format :
# Constructed from biom file#OTU ID A B C D E F taxonomydenovo7708 2.0 0.0 0.0 0.0 0.0 0.0 Bacteria; Proteobacteria; Gammaproteobacteria; Legionellales; Legionellaceae; Legionella; uncultured bacteriumdenovo3059 0.0 3.0 1.0 0.0 0.0 0.0 Bacteria; Bacteroidetes; Cytophagia; Cytophagales; Cytophagaceae; uncultured; uncultured bacteriumdenovo3058 0.0 13.0 0.0 15.0 30.0 0.0 Bacteria; Proteobacteria; Alphaproteobacteria; Rhizobialesdenovo3051 1.0 2.0 0.0 0.0 2.0 3.0 Bacteria; Proteobacteria; Gammaproteobacteria; X35; uncultured bacteriumdenovo3050 2.0 20.0 1.0 19.0 27.0 0.0 Bacteria; Proteobacteria; Alphaproteobacteria; Rhodobacterales; Rhodobacteraceae...
You can also specify the path to your table as a parameter.sh OTUtable2KRONA.sh myfile/amazing_otu_table.tsv