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)
上一篇 2022年5月29日 下午6:36
下一篇 2022年5月29日 下午6:46


相关推荐

  • 良心推荐,我珍藏的一些Chrome插件[通俗易懂]

    良心推荐,我珍藏的一些Chrome插件[通俗易懂]上次搬家的时候,发了一个朋友圈,附带的照片中不小心暴露了自己的Chrome浏览器插件之多,于是就有小伙伴评论说分享一下我觉得还不错的浏览器插件。我下面就把我日常工作和学习中经常用到的一些Chrome浏览器插件分享给大家,随便一个都能提高你的“生活品质”和工作效率。MarkdownHereMarkdownHere可以让你更愉快的写邮件,由于支持Markdown直接转电子邮…

    2022年6月10日
    29
  • svn 文件目录损坏且无法读取

    svn 文件目录损坏且无法读取br svn 下载文件 更新文件时总是出现这个问题

    2026年3月17日
    1
  • 第一高分大省——河北,新高考正式执行,权威政策解读来了!其他省很可能参照河北模式!

    第一高分大省——河北,新高考正式执行,权威政策解读来了!其他省很可能参照河北模式!第一高分大省——河北,新高考正式执行,权威政策解读来了!其他省很可能参照河北模式!1、语数外和6选3组合方案提出,2021年开始,考生总成绩由统一高考的语文、数学、外语3个科目成绩和高中学业水平考试3个科目成绩组成。 2、语数外分值不变 统一高考的语文、数学、外语科目分值不变。 3、不分文理科 4、外语可以考两次 外语科目提供两次考试机会。 …

    2022年7月16日
    34
  • 计算机二级C语言怎么过

    计算机二级C语言怎么过资料 模拟上机软件密码 q9d2 抽一一段时间 像高考模拟考试一样 看看自己能得多少分 只能用电脑运行 nbsp nbsp nbsp nbsp nbsp 计算机二级公共知识 二级语言都考察的内容 大概有 10 分左右 很多题都是背下来就能秒选的 密码 9ch6 nbsp nbsp nbsp nbsp nbsp C 语言基础知识 基础 不多说了 有不懂的地方多看看 密码 61pi nbsp nbsp nbsp nbsp nbsp dev nbsp 非常小的一个编译器 对配置要求很小 使用方法

    2026年3月26日
    2
  • CPU五级流水线_五级流水线是什么

    CPU五级流水线_五级流水线是什么取指:指令取指(InstrucTIonFetch)是指将指令从存储器中读取出来的过程。译码:指令译码(InstrucTIonDecode)是指将存储器中取出的指令进行翻译的过程。经过译码之后得到指令需要的操作数寄存器索引,可以使用此索引从通用寄存器组(RegisterFile,Regfile)中将操作数读出。执行:指令译码之后所需要进行的计算类型都已得知,并且已经从通用寄…

    2022年8月20日
    10
  • MySQL数据库cpu飙升到500%的话他怎么处理?[通俗易懂]

    MySQL数据库cpu飙升到500%的话他怎么处理?

    2022年2月14日
    45

发表回复

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

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