Skip to content
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

ont = "BP" in enricher () function #686

Open
enriquepola1996 opened this issue Apr 18, 2024 · 1 comment
Open

ont = "BP" in enricher () function #686

enriquepola1996 opened this issue Apr 18, 2024 · 1 comment

Comments

@enriquepola1996
Copy link

Hello dear developers,

I am using clusterProfiler to perform a GO analysis for an organism where I am providing my own table of GO terms and my list of genes, however, I am wondering if it is possible to set the parameter ont = "BP" or ont = "CC ". I am running my analysis this way:

enrichment_result1 <- enricher(gene = proteins_up$V1, pvalueCutoff = 0.05, pAdjustMethod = "BH",
                                         universe = matriz_cuentas$V1, minGSSize = 10, maxGSSize = 500,
                                         qvalueCutoff = 0.2, TERM2GENE = go_final, TERM2NAME = term2name)

I greatly appreciated the support.

@guidohooiveld
Copy link

No, if you use the generic function enricher it will use the GO-to-gene mapping as defined in the provided TERM2GENE file (in your case this is go_final). If you would like to restrict your analysis to BP only, you will have to filter go_final before 'feeding' it to enricher.

See for example my posts here: #678 (comment) (part from section #### B) combined analysis), or here: #588 (comment) (part from section ## limit analysis to only GO-BP categories).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants