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

相关推荐

  • ClientScript.RegisterStartupScript()「建议收藏」

    ClientScript.RegisterStartupScript()「建议收藏」一些客户端脚本usingSystem;usingSystem.Data;usingSystem.Configuration;usingSystem.Web;usingSystem.Web.Security;usingSystem.Web.UI;usingSystem.Web.UI.HtmlControls;usingSystem.Web.UI.WebControls…

    2022年7月20日
  • lx文件用什么打开_lservrc文件怎么生成

    lx文件用什么打开_lservrc文件怎么生成介绍两款播放器:第一款:PotPlayer,这款软件快进看学习视频特特别方便。软件的下载地址:链接:http://potplayer.daum.net/?lang=zh_CN第二款:屏幕录像专家

    2022年8月4日
  • redis:Could not connect to Redis at 127.0.0.1:6379: Connection refused错误解析「建议收藏」

    redis:Could not connect to Redis at 127.0.0.1:6379: Connection refused错误解析「建议收藏」1.错误信息思考:根据错误信息的字面意思,可以知道,redis-cli客户端程序,通过ip127.0.0.1,端口6379与redis服务器建立连接失败。说明当我们调用redis-cli时,默认是用本地回环地址去与服务器端建立连接。2.解决问题思路:服务器程序会在监听一个套接字(IP+端口号),等待客户端的连接。一般运行服务器程序的时候,都会加载一个配置文件。redis服务器也会读取一个配置文件。如果不知道配置文件在哪里,可以使用:whichredis.conf#或者whe

    2022年5月2日
  • app弱网测试_热血神器刀设置教程

    app弱网测试_热血神器刀设置教程01.APP弱网测试背景App在使用的过程中,难免会遇到不同的弱网络环境,像在公车上、在地铁、地下车库等。在这种情况下,手机常常会出现网络抖动、上行或下行超时,导致APP应用中出现丢包延迟,从而影响用户体验。作为软件测试工程师,我们要在app上线前做一定弱网络环境场景模拟,查看app在弱网络环境下是否存在某些未知的问题。例如: 客户端卡死、崩溃等异常 核心功能导致软件不能正常运行 存在有损害用户利益或被用户额外获利的机会 是否有合理的…

    2022年10月31日
  • 基于IP地址划分VLAN

    基于IP地址划分VLAN实验环境:1、当检测IP在192.168.10.0./24时,PC接入交换机时,将其划分为VLAN10,且可以和VLAN10的服务器通信2、当检测IP在192.168.20.0/24时,PC接入交换机时,将其划分为VLAN20,且可以和VLAN20的服务器通信SW1<Huawei>system-view//进入全局配置模式[Huawei]undoinfo-centerenable//关闭信息告警提示[Huawei]sysnameSW1//

    2022年5月31日
  • 关于Pytorch中双向LSTM的输出表示问题

    关于Pytorch中双向LSTM的输出表示问题在使用pytorch的双向LSTM的过程中,我的大脑中蒙生出了一个疑问。双向的lstm的outputs的最后一个状态与hidden,两者之间肯定有所联系,但具体是什么样子的呢?会不会hidden状态存储的就是outputs的最后一个状态,这样的话,岂不是会导致hidden并不能表示整个序列的双向信息吗?带着这个疑问,我开始了实验。具体的实验代码,这里就不放了。直接放实验结果吧。output_size:torch.Size([14,32,100])hidden_size:torch.S

    2022年6月22日

发表回复

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

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