美文网首页
python lefse

python lefse

作者: 胡童远 | 来源:发表于2023-01-17 10:21 被阅读0次

github: https://github.com/SegataLab/lefse

install

conda create -n lefse
conda activate lefse
conda install -c bioconda lefse

format

python ~/huty/softwares/miniconda3/envs/lefse/bin/lefse_format_input.py \
input_layer.txt input_layer.in -c 1 -u 2

-c指定分组行
-s指定亚组行,若没有可以不指定
-u指定样本编号
-o指定归一化后范围; -o 1000000

usage: lefse_format_input.py INPUT_FILE OUTPUT_FILE
--output_table OUTPUT_TABLE  the formatted table in txt format
-f {c,r}              set whether the features are on rows (default) or on columns
-c [1..n_feats]       set which feature use as class (default 1)
-s [1..n_feats]       set which feature use as subclass (default -1 meaning no subclass)
-u [1..n_feats]       set which feature use as subject (default -1 meaning no subject)
-o float              set the normalization value (default -1.0 meaning no normalization)

analysis

python ~/huty/softwares/miniconda3/envs/lefse/bin/lefse_run.py \
input_layer.in input_layer.res
-a float        set the alpha value for the Anova test (default 0.05)
-w float        set the alpha value for the Wilcoxon test (default 0.05)
-l float        set the threshold on the absolute value of the logarithmic LDA score (default 2.0)

过程

# layer
Number of significantly discriminative features: 6806 ( 6806 ) before internal wilcoxon
Number of discriminative features with abs LDA score > 2.0 : 1169
# site
Number of significantly discriminative features: 127 ( 737 ) before internal wilcoxon
Number of discriminative features with abs LDA score > 2.0 : 1

参考:
宏基因组数据分析:差异分析(LEfSe安装使用及LDA score计算)

相关文章

  • python lefse

    github: https://github.com/SegataLab/lefse[https://github...

  • LEfSe软件安装

    看网上安装lefse软件很多都是通过conda直接安装的,非常简单,conda install lefse就成功了...

  • LEfSe寻找组间差异细菌

    导读 前面介绍过网页版LEfSe的使用方法:用LEfSe寻找组间差异细菌[https://www.jianshu....

  • LEfSe

    什么是LEfSe LEfSe分析即LDA Effect Size分析,是一种用于发现和解释高维度数据生物标识(基因...

  • 在线作图|2分钟做Lefse分析

    Lefse分析 Lefse(LDA Effect Size)分析是一种用于发现和解释高维度数据的基因、通路和分类单...

  • 08.LEfse

    get tax level6 load data prepare the data format for lefs...

  • LEfSe 在线分析教程

    https://www.lc-bio.cn/faq/kindeditor-4.1.10/attached/file...

  • LEfSe分析在线做

    LEfSe分析,可以分析组间菌群差异,可以找出各组间特异的主要菌群,有助于开发biomaker等研究。其实我们自己...

  • 你的lefse图还不清晰吗

    起笔:dayueban责编:王采荷 相信很多人对lefse(LDA Effect Size)分析都不陌生,为微生物...

  • R语言:提取LEfSe分析显著的KO丰度、物种丰度

    导读 记录要点:1 LEfSe分析结果的header2 comment.char="" 注释设为空,忽略行首的井号...

网友评论

      本文标题:python lefse

      本文链接:https://www.haomeiwen.com/subject/fluvcdtx.html