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)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

  • MySQL日期时间戳转换

    MySQL日期时间戳转换 1.MySQL获取当前时间戳MySQL> select UNIX_TIMESTAMP();+——————+| UNIX_TIMESTAMP() |+——————+|       1525739078 |+——————+1 row in setMySQL> SELECT UNIX_TIME…

    2022年6月21日
    26
  • linux下mysql常用命令_shell命令大全

    linux下mysql常用命令_shell命令大全一、总结一下:1.linux下启动mysql的命令:mysqladminstart/ect/init.d/mysqlstart(前面为mysql的安装路径)2.linux下重启mysql的命令:mysqladminrestart/ect/init.d/mysqlrestart(前面为mysql的安装路径)3.linux下关闭mysql的命令:mysqladminshutdown/ec…

    2022年9月16日
    0
  • initramfs-kernel_ubuntu initramfs

    initramfs-kernel_ubuntu initramfsLinux系统启动时使用initramfs(initramfilesystem),initramfs可以在启动早期提供一个用户态环境,借助它可以完成一些内核在启动阶段不易完成的工作。当然initramfs是可选的,Linux中的内核编译选项默认开启initrd。在下面的示例情况中你可能要考虑用initramfs。加载模块,比如第三方driver定制化启动过程(比如打印welcomeme…

    2022年8月11日
    6
  • DIY个人服务器(diy存储服务器)

    小型企业及个人用户入门级服务器DIY2007-01-16eNet&Ciweek2、主板:服务器主板相比普通PC的主板有很大的不同,这些在前面的介绍中已经说明过了。作为DIY服务器的主板,选购的出发点应是“实际”。主板买回来是用的,如果我们事前分析情况发现只用一个CPU就行了,也不需要用到SCSI设备,这样我们就没有必要非要买具有多余功能的服务器主板了,毕竟这些多余的功能是要“银子”来换来的…

    2022年4月10日
    138
  • mysql 主从1146_mysql 主从复制1146错误处理办法

    mysql 主从1146_mysql 主从复制1146错误处理办法错误现象:Replicate_Wild_Ignore_Table:Last_Errno:1146Last_Error:Error’Table’mydb.test1146’doesn’texist’onquery.Defaultdatabase:’mydb’.Query:’insertintotest1146values(‘bigdiao’)’方法一、在slave上重…

    2022年5月6日
    109
  • 使用PHP password_hash()加密,再也不怕被拖库了

    使用PHP password_hash()加密,再也不怕被拖库了

    2022年2月12日
    38

发表回复

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

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