-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rationale for decreasing order only in GSEA #58
Comments
It must be descending in |
I set |
Hello, I use GSEA function from clusterprofiler following the tutorial: http://yulab-smu.top/biomedical-knowledge-mining-book/universal-api.html. The tutorial works well. When I run my data, I got warnings same as YuLab-SMU/clusterProfiler#214. The issue tells me that I should use rank rather than log2fc, which may have the same values and cause warnings. Actually, when I use rank to run GSEA() fun, I got another warning: "unbalanced (positive and negative) gene-level statistic values" and the warning told me that I could use scoreType = "pos" to run GSEA. After using this para, I found these results were not the same, especially between em2 and gl_df. library(tidyverse) data(geneList, package="DOSE") m_t2g <-msigdbr::msigdbr(species = "Homo sapiens", category = "C2") %>% gl_df <- data.frame(gene=names(geneList), gl <- gl_df$rank dotplot(em2_gl) em2_gl2 <- GSEA(gl, TERM2GENE = m_t2g, scoreType = "pos") I do not think this is normal. At present, I use a compromised method to solve this problem. Hope you share more help or information. |
@shanshenbing This warning has no effect on the accuracy of the results. |
Prerequisites
Describe you issue
In performing GSEA, it seems the default is to have the genes sorted in
decreasing
order:However, per the original paper, it seems the order should not matter i.e. whether ascending or descending. I would like to know if it is possible to support a non-decreasing sorted gene list or perhaps what the rationale is for a decreasing only gene sort.
This could be related to YuLab-SMU/clusterProfiler#214, YuLab-SMU/clusterProfiler#91, and YuLab-SMU/clusterProfiler#48.
Thank you,
NelsonGon
Ask in right place
DOSE
The text was updated successfully, but these errors were encountered: