少点错误 2024年07月20日
Krona Compare
index_new5.html
../../../zaker_core/zaker_tpl_static/wap/tpl_guoji1.html

 

文章介绍了作者如何通过修改Krona工具,实现多样本在同一页面上的交互式比较,从而更深入地理解微生物组样本之间的差异。通过自定义代码,作者实现了样本间的联动展示,使得在查看某一分类时,所有样本的相应部分都能同步放大展示。

🔍 作者使用Krona工具进行微生物组样本的相对丰度比较,但希望能够在同一页面上比较多个样本。

🎨 通过修改Krona输出,作者创建了一个可以同时显示多个样本的交互式图表,实现了样本间的联动。

💻 Krona图表通过iframe实现多图表展示,并通过自定义JS代码优化布局,保持图表的宽高比。

🔗 为保持颜色匹配,每个图表都包含所有样本的数据,并通过修改HTML和DOM来同步样本间的选择和导航。

🐞 虽然这种方法有些笨拙,且生成的HTML文件较大,但作者认为在实际使用中足够快速和有用。

Published on July 20, 2024 1:10 AM GMT

Cross-posted from my NAONotebook.

When trying to understand how metagenomic samples differ I often want to drill down through the taxonomic hierarchy, comparing relative abundances. I've tried several tools for this, existing and custom, and haven't been all that happy with any. For most purposes, the tool I like most is Krona, which shows an interactive chart. For example, here's Krona showing the results of running the NAO's v1 metagenomic sequencing pipeline on the unenriched Hyperion Treatment Plant samples from Rothman et al. 2021:


(interactive version)

What I often wish I had, however, are linked Krona charts, where I could see multiple samples at once, and drilling down in one sample showed the corresponding portion of the other samples. After failing to find something like this, I hacked something together by monkey-patching the output of Krona. Here's it comparing the samples from several wastewater treatment plants in the same study:

When I click on "viruses" in any of the plots, all four zoom in on the viral fraction:

That's a lot of Tobamovirus!

I only just made this, so it's likely buggy, but if that doesn't put you off you're welcome to give it a try. The interactive version of the charts above is here (warning: 60MB) and the generation code is open source, on github.


If you're interested in the technical details of how I made this:



Discuss

Fish AI Reader

Fish AI Reader

AI辅助创作,多种专业模板,深度分析,高质量内容生成。从观点提取到深度思考,FishAI为您提供全方位的创作支持。新版本引入自定义参数,让您的创作更加个性化和精准。

FishAI

FishAI

鱼阅,AI 时代的下一个智能信息助手,助你摆脱信息焦虑

联系邮箱 441953276@qq.com

相关标签

微生物组学 Krona图表 样本比较 数据可视化
相关文章