Visualize with Krona

I am trying to plot a Krona chart from a Kraken2 report, but I keep getting the following error:

/cvmfs/main.galaxyproject.org/shed_tools/toolshed.g2.bx.psu.edu/repos/saskia-hiltemann/krona_text/b14f1444e464/krona_text/runKrona.sh: line 27: ktImportText: command not found

1 Like

Welcome, @Barry

Which server you are working at? Would you like to share the history if at a public Galaxy server so we can help to troubleshooting this?

Please see the banner at this forum, or here directly to learn what information we are looking for. → How to get faster help with your question

Thanks! :slight_smile:

I was on the global server when the error occured. However, the error did not appear when I ran the same krona visualisation program on the Galaxy AUS server

Hi @Barry – If you could share the URL for the server, we can check to see if there is a technical problem, and fix it. Find this at the very top of your web browser. UseGalaxy.org or UseGalaxy.eu?

This server is the UseGalaxy.org.au server, correct? This server has slightly different resources for AU researchers but we can compare once we know where the error is happening. Your history share link would include the URL, too, which is why I asked for it.

Thanks! :slight_smile:

Hi! The URL for the server with the error is as follows:

The server that runs Krona without error is indeed UseGalaxy.org.au.

Hi @Barry

Thanks for sharing the history! I see the problem. Krona can only work with tabular data that has a whole number “count” in the first column, then labels in the other columns.

So if you ever get an error – this is what to look at – is my data formatted in a way that the tool can covert automatically (mothur taxonomy can be converted this way) or do I need to do some data manipulation on my own first?

What to do

Reformat your Kraken report to a tabular file that the Krona tool can use. This is what is in your history as the error. I’m guessing that a different implementation of Krona was used at AU (search the tool panel with “krona” to see all choices at any particular server).

  • Krakentools: Convert kraken report file to krona text file → link at ORG
  • Visualize with Krona Visualise any hierarchical data → link at ORG

And, to complicate it, there are even more ways to do this too, including custom ways! If interested, please scroll down on the tool forms to find more instructions: examples of how the inputs files are formatted and links to tutorials with examples.

For general text manipulation, we also have some tutorials that might be interesting to you or anyone else reading this later. See → GTN Materials Search (query=olympics), with prior Q&A here at text-manipulation

Hope this helps! :scientist:

Hi, I had done exactly what you mentioned for job number 60 on the history, yet the error persisted. The converted krona text file does indeed have the whole number “count” as the 1st row (job number 59).

Hi @Barry The history share link isn’t working for me. Could you please generate it again? Maybe toggle it on/off? Thanks!

Here is the link to the history. Thank you for your help so far!

Hi @Barry

It does seem like that version of Krona has a dependency problem! I’m reviewing and if true, we’ll get that fixed up at the ORG server.

However – you do not need to wait because there is another version of Krona that works on your data.

See the last result dataset 122 in the copy of your history that I am sharing back. It uses the same input dataset 69 and your failed run in dataset 70. So the only extra step was changing the tool to use.

I’ll leave this shared until you get a chance to see or import it. I’ll also come back and post a bug fix ticket later today – done! see above. Thanks for all the follow up! Very helpful. :rocket:

Hi! It works! Thanks so much!

1 Like

Great @Barry thanks for letting us know! That other version of Krona is older and needs some special handling on the server – we’ll work on that. :hammer_and_wrench: