LEfSe学习[通俗易懂]

LEfSe学习[通俗易懂]参考:微生物组间差异分析之LEfSe分析LEfSe分析,你真的懂嘛?微生物LEfSe分析图表解读实栗操作:(待续)#!/bin/sh#inthisscriptweshowhowtoperformthebiomarkerdiscoveryoperation#usingLEfSe.ThescriptsrequireLEfSetobein…

大家好,又见面了,我是你们的朋友全栈君。

参考 :
微生物组间差异分析之LEfSe分析
LEfSe 分析, 你真的懂嘛?
微生物LEfSe分析图表解读
 

实栗操作:(待续)

#!/bin/sh
# in this script we show how to perform the biomarker discovery operation
# using LEfSe. The scripts require LEfSe to be installed and in the system path

# convert the sample names in the table of abundance into classes (i.e. the two bodysites)
sed 's/\([A-Z][A-Z]\)_\w*/\1/g' output/merged_abundance_table.txt > tmp/merged_abundance_table.4lefse.txt

# first LEfSe step: format the input specifying that the class info is in the first row
format_input.py tmp/merged_abundance_table.4lefse.txt tmp/merged_abundance_table.lefse -c 1 -o 1000000

# run the LEfSe biomarker discovery tool with default options apart for the 
# threshold on the LDA effect size which is increaset to 4
run_lefse.py tmp/merged_abundance_table.lefse tmp/merged_abundance_table.lefse.out -l 4

# Plot the resulting list of biomarkers with the corresponsing effect size
plot_res.py --dpi 300 tmp/merged_abundance_table.lefse.out output_images/lefse_biomarkers.png

# Plot the biomarkers on the underlying cladogram
plot_cladogram.py --dpi 300 --format png tmp/merged_abundance_table.lefse.out output_images/lefse_biomarkers_cladogram.png 

# Plot one features specifically (Firmicutes in this case) 
plot_features.py -f one --feature_name "k__Bacteria.p__Firmicutes" tmp/merged_abundance_table.lefse tmp/merged_abundance_table.lefse.out Firmicutes.png

# Plot all biomarkes saving the images in one zip archive ("-f diff" is for plotting biomarkers only, with "-f all" one can plot all input features)
plot_features.py -f diff --archive zip tmp/merged_abundance_table.lefse tmp/merged_abundance_table.lefse.out biomarkers.zip







## 格式化输入表
format_input.py merged_abundance_table.4lefse.txt merged_abundance_table.lefse -c 1 -o 1000000

## LEfSe生物标记物发现工具可以与默认统计选项一起使用(-l 阈值的设置)
run_lefse.py merged_abundance_table.lefse merged_abundance_table.lefse.out -l 4


## 绘制具有相应效应大小的生成标记
plot_res.py --dpi 300 merged_abundance_table.lefse.out lefse_biomarkers.png


## 基础分类树上的生物标记
plot_cladogram.py --dpi 300 --format png merged_abundance_table.lefse.out lefse_biomarkers_cladogram.png 


## 
plot_features.py -f diff --archive zip merged_abundance_table.lefse merged_abundance_table.lefse.out biomarkers.zip


PS:
### merged_abundance_table.4lefse.txt
ID    group1    group1    group1    group1    group2    group2    group2    group2        
k__Archaea      0.01107 0.0     0.01438 0.0     0.00591 0.00909 0.0     0.00264 0.06548 0.06238
k__Archaea|p__Euryarchaeota     0.01107 0.0     0.01438 0.0     0.00591 0.00909 0.0     0.00264 0.06548 0.06238
k__Archaea|p__Euryarchaeota|c__Methanobacteria  0.01107 0.0     0.01438 0.0     0.00591 0.00909 0.0     0.00264 0.06548 0.06238
k__Archaea|p__Euryarchaeota|c__Methanobacteria|o__Methanobacteriales    0.01107 0.0     0.01438 0.0     0.00591 0.00909 0.0     0.00264 0.06548 0.06238
k__Archaea|p__Euryarchaeota|c__Methanobacteria|o__Methanobacteriales|f__Methanobacteriaceae     0.01107 0.0     0.01438 0.0     0.00591 0.00909 0.0     0.00264 0.06548 0.06238
k__Archaea|p__Euryarchaeota|c__Methanobacteria|o__Methanobacteriales|f__Methanobacteriaceae|g__Methanobrevibacter       0.01107 0.0     0.01438 0.0     0.00591 0.00909 0.0     0.00264 0.06548 0.06238


版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/139501.html原文链接:https://javaforall.net

(0)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

  • KindEditor配置和使用

    KindEditor配置和使用|字号订阅很长时间没有写学习心得了,整理了一下思路,简单写一下吧。1下载kindeditor包,目前最新版本是kindeditor-3.5.5。下载地址:http://www.kindsoft.net/2.解压之后,解压目录kindeditor如下图所示。3.开始瘦身,其实调用kindeditor并不需要那么多文件,只要保留目录:…

    2022年10月12日
    3
  • 图集谷-写真集-爬虫-1.0[通俗易懂]

    图集谷-写真集-爬虫-1.0[通俗易懂]图集谷写真集爬虫

    2022年7月27日
    5
  • Android之ViewStub的简单使用

    Android之ViewStub的简单使用1.viewstub就是动态加载试图;也就是在我们的app启动绘制页面的时候,他不会绘制到view树中;当在代码中执行inflate操作后,她才会被添加到试图中。其实ViewStub就是一个宽高都为0的一个View,它默认是不可见的,只有通过调用setVisibility函数或者Inflate函数才会将其要装载的目标布局给加载出来,从而达到延迟加载的效果,这个要被加载的布局通过android:l…

    2022年6月28日
    29
  • 教你实现一个天气实时查询微信小程序

    教你实现一个天气实时查询微信小程序文章目录博主绪言组件选择部署阶段组件选择组件变量安排组件布局js后端逻辑处理环节API处理环节函数处理环节结束语博主绪言天气之子app主要功能是选择地区(省,市,区或者县),然后获取当前信息,把所选择的地区信息显示在界面上,然后调用和风天气免费的API,获取当前选择地区的天气信息,并且获取天气图标,把所有获取的这些信息,美观地显示在界面上。以下是示例界面:组件选择部署阶段组件选择根据上…

    2022年5月14日
    59
  • 云服务器ECS和轻云服务器区别

    云服务器ECS和轻云服务器区别

    2021年5月25日
    160
  • sqlite如何安装_安装路由器的详细步骤

    sqlite如何安装_安装路由器的详细步骤1.安装sudoapt-getinstallsqlite32.可执行程序sqlite3在/bin目录下,使用sqlite3+空格+数据库文件,可打开数据库3.使用.database查看已连接的数据库会话4.使用.tables查看数据库中的表5.执行SQL进行增删查改Linux下的SQLite数据库查看工具:SQLiteBrowser安装:sudoaptinstallsqlitebrowser-ywindows下的SQLite数据库查看工具:SQLi…

    2025年9月7日
    5

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号