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
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 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
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).
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.
admin edit: unshared history purged from server.
Using Krona pie chart from taxonomic profile (link at ORG)
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.