Question: custom background list for ReactomePA
gravatar for andrew.gehrke
5 days ago by
andrew.gehrke0 wrote:

Hi Guangchuang,

Is there a way to create a custom universe for the enrichPathway function?  I am using a non-model organism and want to use only the human genes that my organism possesses as the background.  In general im not sure how to use the universe flag, could you provide any help here?

Thanks for your time,


ADD COMMENTlink modified 2 days ago • written 5 days ago by andrew.gehrke0

The universe is the genes of the background so you can pass a vector like c("G1", "G2", "G3", ...) enrichPathway will use it.

ADD REPLYlink written 5 days ago by Lluís R310
gravatar for andrew.gehrke
2 days ago by
andrew.gehrke0 wrote:

Thanks for the response Lluis.  Just so im clear, it should work with this?

pathway2 <- enrichPathway(gene, universe = c("G1", "G2", "G3"))

It seems like no matter what I put in the universe section I always get an error that says 

No gene set have size > 10 ...
--> return NULL...

Do you have a suggestion for importing the gene set from a txt list that I have?  Ive tried all different ways to important and still cant seem to get it.  

Thank you!



ADD COMMENTlink written 2 days ago by andrew.gehrke0

That means that you are filtering by size of the gene sets and that they are smaller than 10 genes. Without knowing the specific format I can't provide advice. Could you ask a new question with the file (or part of it) describing the format and what have you tried to import it?

ADD REPLYlink written 2 days ago by Lluís R310
Please log in to add an answer.


Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.2.0
Traffic: 412 users visited in the last hour