Giter VIP home page Giter VIP logo

reporterscore's Introduction

  • Description:

    This analysis tool was develeped for KEGG enrichment analysis according to the published article "Dynamics and Stabilization of the Human Gut Microbiome during the First Year of Life".

  • Dependencies of R packages

    optparse, ggplot2

  • For pathway enrichment caculation:

    Rscript caculate_reporter_score.R --group group.list --abund KO.rela.xls --type pathway --outdir pathway

  • For module enrichment caculation:

    Rscript caculate_reporter_score.R --group group.list --abund KO.rela.xls --type module --outdir module

    This command will generate two files "stat.ko.res.xls" and "reporter_score.xls". More result interprations, please see the published article.

  • Visualization:

    Rscript plot_reporter.score.R pathway/reporter_score.xls pathway/

    Rscript plot_reporter.score.R module/reporter_score.xls module/

reporterscore's People

Contributors

wangpeng407 avatar

Stargazers

 avatar  avatar Longhao Jia avatar 宏基因组分析师 avatar git@wh avatar Xuyifei avatar liling avatar LF avatar  avatar

Watchers

 avatar

reporterscore's Issues

An error occurred while running the sample file (运行示例数据时报错了

After downloading the software, you will use the data contained in the folder, which will also report an error
通过git clone下载完,用文件夹里面自带的KO.rela.xls和group.list运行,也会报错

my command:
perl -MList::Util=sum -lane'$.==1 && print ; $.==1 && next; sum(@f[1..$#F]) == 0 && next; print ' KO.rela.xls > non-zero-KO.rela.xls
Rscript caculate_reporter_score.R --group group.list --abund non-zero-KO.rela.xls --type pathway --outdir try

here is the error :
报错长这样:
$ Rscript caculate_reporter_score.R --group group.list --abund non-zero-KO.rela.xls --type pathway --outdir try
Error in combn(unique_group, 2) : n < m
Calls: as.data.frame -> combn
Execution halted

数据库构建出现问题

尊敬的作者您好,我是一个小白
我在用您的log.sh构建库的过程中,发现有很多No KOs in map,可以请您更新一下log.sh或者是告诉我是怎么回事吗?
非常感谢!

perl handle.pl pathway-KO.list pathway.desc.list > path_stat_KO.xls
No KOs in map01010
No KOs in map01060
No KOs in map01061
No KOs in map01062
No KOs in map01063
No KOs in map01064
No KOs in map01065
No KOs in map01066
No KOs in map01070
No KOs in map03260
No KOs in map03263
No KOs in map03264

What if the P value is caculated from other statistical method

Hi, I noticed that in function StatKOAttributes, using the adjusted p-value from Wilcoxon rank-sum test or t-test to calculated Z-score of every KO. I wonder what if I used p-value generated from other statistical method? For example, microbiome data typically is overdispersed and sparse with many zeros, so we use metagenomeSeq package using zero-flated  Gaussian distribution to perform differential analysis instead of Wilcoxon rank-sum test or t-test. In that case, is it suitable that use the p-value calulted form metagenomeSeq package to generated z-sore?

关于reporter-score正负号问题

最近有一篇文章讨论了reporter-score正负号误用问题:https://mp.weixin.qq.com/s?__biz=MzUzMjA4Njc1MA==&mid=2247507105&idx=1&sn=d5a0f0aaf176e245de7976f0a48f87a8#rd

其中就提到了你所参考的1. Bäckhed, F. et al. Dynamics and Stabilization of the Human Gut Microbiome during the First Year of Life. Cell Host & Microbe 17, 690–703 (2015). 也存在误把reporter-score正负号当作上下调标志的现象。

但是我仔细阅读了你的代码,发现你巧妙的将矫正后p值除以2从而让z-score全部小于0,再通过判断上下调给予z-score正负号,从而让最后的reporter-score正负号作为上下调标志
然而我看backhed 2015的method里没有写到这样的做法,想问一下你是参考哪里的方法这样做呢?

另外想问一些问题:
1.如果输入的ko丰度全部上调或者下调,这会让z-score全部小于0或者大于0,但是最后的reporter-score还是会有正负号,因为random_mean_sd_from_vec得到的大概是整体ko的均值和方差,这样的reporter-score正负号就不能代表上下调,跟最近那一篇文章提到的一样。
2.random_mean_sd_from_vec这个函数,如果clean.KO长度小于KOnum的话,会使得每次采样的结果一样(不放回取样),得到的sd理论上是0,实际是很小的浮点数,最终reporter-score会非常大,有考虑这种情况使用放回抽样吗?

How can you get the path_stat_KO and module_stat_KO?

Hi,I wonder that "path_stat_KO" and "module_stat_KO" list are an universal data for the ReporterScore analysis? Or I should construct my own "path_stat_KO" and "module_stat_KO" data acccording to my own data. But how?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.