打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
biobakery / biobakery / wiki / lefse — Bitbucket

LEfSe Tutorial

LEfSe (Linear discriminant analysis Effect Size) determines the features (organisms, clades, operational taxonomic units, genes, or functions) most likely to explain differences between classes by coupling standard tests for statistical significance with additional tests encoding biological consistency and effect relevance.

LEfSe is available as a Galaxy module, a Homebrew formula, a Docker image, and included in bioBakery (VM and cloud). For additional information, please refer to the LEfSe paper.

We provide support for LEfSe users. Please join our Google group designated specifically for LEfSe users. Feel free to post any questions on the google group by posting directly or emailing lefse-users@googlegroups.com.



Overview

The following figure shows LEfSe's workflow.


1. LEfSe (Galaxy)

For the purpose of this tutorial we will be using a sample input file (hmp_small_aerobiosis.txt).

  • Click on the LEfSe -> Format Data for LEfSe link on the left pane, and select the specific rows for Class, Subclass and Subjects in your file, and press the Execute button as shown below:
  • Click on the LEfSe -> LDA Effect Size (LEfSe) link on the left pane, and select parameter values according to your analysis requirements. Press Execute, when done.
  • Once complete, you may now plot the LEfSe results, by click on the LEfSe -> Plot LEfSe Results link on the left pane, and press the Execute button as shown below:
  • This will produce a figure, that will look like as shown below (To visualize the figure in the browser, click on the Eye symbol against the resulting output in the right pane).
  • To plot a cladogram of your results, you may click on the Plot Cladogram link on the left pane, and press the Execute button when ready.
  • This action will produce a cladogram, as shown below:

You may also plot differential features or one feature. Please refer to the LEfSe documentation for more information.


2. LEfSe (Brew/Docker/VM)

LEfSe can be installed with Homebrew or run from a Docker image. Please note, if you are using bioBakery (Vagrant VM or cloud) you do not need to install LEfSe because the tool and its dependencies are already installed.

Install with Homebrew: $ brew install biobakery/biobakery/lefse

Install with Docker: $ docker run -it biobakery/lefse bash

If you would like to install from source, refer to the LEfSe documentation (Step 4).

For the purpose of this tutorial we will be using a sample input file: hmp_small_aerobiosis.txt depicting the general format of the input file (two rows of metadata, one row of sample names and the corresponding microbial abundance table).

  • Run the following command to format the input file (hmp_small_aerobiosis.txt). This will generate a file (hmp_aerobiosis_small.in).
$ format_input.py hmp_aerobiosis_small.txt hmp_aerobiosis_small.in -c 1 -s 2 -u 3 -o 1000000
  • Run the following command, passing the file generated in the previous step as input. This will generate a file (hmp_aerobiosis_small.res) consisting of LEfSe analysis results.
$ run_lefse.py hmp_aerobiosis_small.in hmp_aerobiosis_small.res

3. Visualization

To visualize the results, LEfSe provides a couple of options. For all the options you will need the output from run_lefse.py (in this case: hmp_aerobiosis_small.res)

  • To plot the results of the LEfSe analysis generated from the previous step, run the following command.
$ plot_res.py hmp_aerobiosis_small.res hmp_aerobiosis_small.png
  • This will produce a figure as shown below:
  • You may also choose to visualize the results in a Cladogram. Run the following command to generate the Cladogram figure. This will use the LEfSe results file generated previously.
$ plot_cladogram.py hmp_aerobiosis_small.res hmp_aerobiosis_small.cladogram.png --format png
  • The resulting figure is shown below.

Notes

For information on more options, and further analyses, please refer to Step 4 in the MetaPhlAn Pipeline Tutorials.

本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
一文读懂LEFSE:组间Marker筛选好工具
如何简化美化LEfSe分析结果中的Cladogram图
MetaPhlAn2-增强版宏基因组分类谱工具-一条命令获得宏基因组物种组成
Docker的国内现状和未来发展是怎样的?
vm2h1
优雅地部署Docker
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服