Comments (10)
All of the geneset symbols are upper case, so convert your signature genes to upper case as well.
from hyper.
I am still getting the similar result with "hypergeometric" test ,all the pathways are coming with pval and fdr value of 1 and not showing any gene overlap, however its working with "kstest" .
from hyper.
If your symbols are upper case, and the p-values are 1, then your signature may not be enriched with any genesets.
from hyper.
You could try another geneset compendium, like Hallmark or Reactome.
from hyper.
I think there is some issue, when I am using "hypergeometric", else everything is working fine with "kstest"
from hyper.
Could you send me a script to reproduce your issue?
Or reply with your code and show what the input signature looks like for both the hypergeometric and kstest methods. That way I can let you know if it is your data or an issue with the package.
from hyper.
library(hypeR)
ranks <- deframe(read.table("DE_genes_ranks.txt",sep = "\t",header = T))
head(ranks)
msigdb_path <- msigdb_download_all(species="Mus musculus")
KEGG <- msigdb_fetch(msigdb_path, "C2.CP.KEGG")
hyp_obj <- hypeR(ranks, KEGG, test="hypergeometric")
hyp_show(hyp_obj)
hyp_obj <- hypeR(ranks, KEGG, test="kstest")
hyp_show(hyp_obj)
Reactome <- msigdb_fetch(msigdb_path, "C2.CP.REACTOME")
hyp_obj <- hypeR(ranks, Reactome, test="hypergeometric")
hyp_show(hyp_obj)
hyp_obj <- hypeR(ranks, Reactome, test="kstest")
hyp_show(hyp_obj)
from hyper.
This is working now on my end, you need to convert your rankings to a character vector of gene symbols when using test="hypergeometric"
. See my comments.
library(tidyverse)
library(hypeR)
ranks <- deframe(read.table("DE_genes_ranks.txt",sep = "\t",header = T))
head(ranks)
msigdb_path <- msigdb_download_all(species="Mus musculus")
KEGG <- msigdb_fetch(msigdb_path, "C2.CP.KEGG")
hyp_obj <- hypeR(ranks, KEGG, test="kstest")
hyp_show(hyp_obj)
# Hypergeometric method takes a character vector of gene symbols
# This should be a differential expression signature for example (top 100 differentially expressed genes)
signature <- names(sort(ranks, decreasing=TRUE)[1:100])
head(signature)
hyp_obj <- hypeR(signature, KEGG, test="hypergeometric")
hyp_show(hyp_obj)
from hyper.
Thanks Federico, now I got it. Hypergeometric test would be overlap of signature genes with genesets. That's why there were no overlap and hence pval were coming as 1.
Nice simplified and comprehensive tool for gene set enrichment analysis with better visualisation.
Thanks
Gyan
from hyper.
Thanks :)
from hyper.
Related Issues (20)
- Plots not diplaying in jupyter notebook HOT 3
- GSEA arguement not recognised hypeR HOT 1
- Error in conexion HOT 1
- quiet
- reactable should be "wider" HOT 1
- Enrichment maps unable to export in a .tiff format HOT 2
- Duplicated gene symbols in the output of msigdb_download HOT 6
- sizes argument in hyp_dots function HOT 1
- error in GSEA about weighted signatures HOT 1
- How to get signetures enriched in a pathway? HOT 1
- hypeR-dot plots with KS test should incorporate directionality information
- KS with mx.diff=TRUE (GSVA-like)
- .check_overlap returns a fraction, not a percentage HOT 1
- Error in hyp_hmap HOT 2
- X-axis and Outputting Gene Overlap Size HOT 2
- rctbl_build does not work with method="ks" HOT 1
- .kstest needs to match ks.test (modulo the sign)
- MSigDB C7 retrieval fails
- rgsets does not support proper object "duplication" by value
- Hits names should be quoted (like in the csv format)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hyper.