Krona icon indicating copy to clipboard operation
Krona copied to clipboard

Can you make one HTML from multiple files

Open Tj-Idowu opened this issue 5 years ago • 10 comments

Hi,

I have 32 XML files and I would like to pool the data together and visualize it in a pie chart. Is that something that is possible to do with Krona and if so how? Thank you.

Tj-Idowu avatar Jul 18 '19 16:07 Tj-Idowu

I have the same requirment above, Could you please help. Thanks

ThomasRinu avatar Oct 03 '19 00:10 ThomasRinu

Just merge the XML files into one file.

If you look at the XML example in the wiki, you can see how the XML should look like if you wan't to distinguish the datasets.

tolot27 avatar Oct 03 '19 09:10 tolot27

Another option would be making a Krona chart for each and then using ktImportKrona to combine them.

ondovb avatar Oct 03 '19 17:10 ondovb

Hi @ondovb , how would I rename the samples up top in the merged Krona HTML from ktImportKrona? In my example, both are named 'kraken.' Where does it choose that name? Probably from my files, each named kraken.html? Thanks!

image

lskatz avatar Apr 02 '20 18:04 lskatz

Figured it out. Either:

  • Name the html file under the tag <dataset>blah</dataset> where blah is the name in this example
  • When creating the html file, run the command with the "comma" parameter, e.g., ktImportText -o tmp.html kraken.report,blah where blah is the name in this example

lskatz avatar Apr 02 '20 21:04 lskatz

Figured it out. Either:

  • Name the html file under the tag <dataset>blah</dataset> where blah is the name in this example
  • When creating the html file, run the command with the "comma" parameter, e.g., ktImportText -o tmp.html kraken.report,blah where blah is the name in this example

lskatz avatar Apr 02 '20 21:04 lskatz

I have generated 2 krona plots. now how to merge those 2 Krona plots using ktImportKrona? Please guide

ursadhip avatar Nov 21 '20 04:11 ursadhip

You can merge them in a single html file: An example for 3 files: ktImportText kraken.report1,name1 kraken.report2,name2 kraken.report3,name3 -o tmp.html

eandresleon avatar Jul 06 '21 07:07 eandresleon

Hi, just following up with this question; using ktImportText creates the merged HTML. However, the levels are reduced to five instead of ~30 (when doing it individually). Does anyone have any suggestion to keep all levels in the merged HTML file?

andrese52 avatar Oct 28 '22 21:10 andrese52

Hi, just use: ktImportKrona -o krona_merge.htm \ krona_chart_1.html \ krona_chart_2.html \ krona_chart_3.html

VaneYahuitl avatar May 13 '24 20:05 VaneYahuitl