Using clusterprofiler (or else) top look for enrichment of one specific GO term
2
0
Entering edit mode
5.6 years ago

In my set of differentially expressed proteins (derived from comparison of different genotypes to healthy) I would like to check if specific GO-terms are enriched (eg. if one set of proteins contains significantly more often the annotation for "membrane" = GO:0016020).

Currently I am using clusterProfiler for enrichment analysis but it appears that it will only check for unbiased enrichment in the sense of "which terms are enriched?". But I did not find a function to ask the question: is term xxx enriched in protein set A.

Maybe someone knows how I could best achieve this?

Thank you! Sebastian

r clusterprofiler bioconductor enrichment • 5.8k views
ADD COMMENT
3
Entering edit mode
5.6 years ago

Your question is the same as what any enrichment analysis tool does - "which terms are enriched in my geneset compared to a background gene set?".

In your case, you just need to change your background gene set to all of your differentially expressed genes (the universe parameter in clusterProfiler) rather than all genes, then use the genes from set A as your test set:

genesetA.terms <- enrichGO(yourgenesetA, universe=allDEGs, ...)
ADD COMMENT
0
Entering edit mode

Great workaround, thanks!

ADD REPLY
0
Entering edit mode
5.1 years ago
ifanlyn • 0

May I ask what the allDEGs mean? I also meet this problem, but I can't solve it, I don't know how to set the background parameter, universe. Plz forgive me for asking such a simple question.

ADD COMMENT
0
Entering edit mode

This is a separate question. Please post it as a new question (with a clear explanation and reproducible example) if you would like help. Please read this post on how to properly ask a question before doing so.

ADD REPLY

Login before adding your answer.

Traffic: 2601 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6