Biowulf High Performance Computing at the NIH


A set of scripts to create Krona charts from several Bioinformatics tools as well as from text and XML files

Krona allows hierarchical data to be explored with zooming, multi-layered pie charts. KronaTools can be used to create Krona charts from several bioinformatics tools and raw data formats. The resulting interactive charts are self-contained and can be viewed with any modern web browser.

Web sites

Creating Krona Graphs
back to top

KronaTools can be used to generate Krona charts using data from many different sources. See the Krona GitHub Wiki for ideas.

Although there are many uses for KronaTools, Krona was designed to visualize metagenomic data. In the following example, we will generate a Krona chart based on a simulated dataset processed using CLARK. First, we'll allocate an interactive session and copy some test data to our data directory.

[user@cn0123 ~]$ module load clark
[+] Loading clark 1.2.3
[user@cn0123 ~]$ cd /data/$USER
[user@cn0123 user]$ mkdir -p dbd2/Custom
[user@cn0123 user]$ cp $CLARK_TEST_DATA/complex_targets/*.fna dbd2/Custom
[user@cn0123 user]$ cp $CLARK_TEST_DATA/complex_reads.fa .

Now we'll build a custom bacteria database, run a classification on it, and estimate abundance.

[user@cn0123 user]$ dbd2 bacteria --species
[user@cn0123 user]$ -O complex_reads.fa -R complex \
             -n $SLURM_CPUS_PER_TASK
[user@cn0123] -F complex.csv -D dbd2 --krona

Finally, we'll use ktImportTaxonomy from the KronaTools suite to generate a Krona chart in .html.

[user@cn0123 user]$ module load kronatools
[+] Loading kronatools 2.7 on cn0123

[user@cn0123 user]$ ktImportTaxonomy -i -m 3 -o krona_taxonomy.html results.krn

You can view the resulting Krona chart here.

back to top