custom background list for ReactomePA
1
0
Entering edit mode
@andrewgehrke-12761
Last seen 4.7 years ago

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?

-Andrew

reactomepa chipseeker Guangchuang Yu • 1.1k views
0
Entering edit mode

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

0
Entering edit mode
@andrewgehrke-12761
Last seen 4.7 years ago

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!

-Andrew

0
Entering edit mode

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?