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

Question about the result of GO:BP analysis: only one or two gene related to one GO term #749

Open
Mancang-Yu opened this issue Dec 26, 2024 · 1 comment

Comments

@Mancang-Yu
Copy link

Hi!This is my code run the GO:BP analysis:

group <- data.frame(gene=df_sig_up$gene,
                    group=df_sig_up$cluster)

Gene_ID <- bitr(df_sig_up$gene, fromType="SYMBOL", 
                toType="ENTREZID", 
                OrgDb="org.Mm.eg.db")

#构建文件并分析
data  <- merge(Gene_ID,group,by.x='SYMBOL',by.y='gene')

data_GO <- compareCluster(
  ENTREZID~group, 
  data=data, 
  fun="enrichGO", 
  OrgDb="org.Mm.eg.db",
  ont = "BP",
  pAdjustMethod = "BH",
  pvalueCutoff = 0.05,
  qvalueCutoff = 0.05
)
data_GO_sim <- clusterProfiler::simplify(data_GO)

data_GO_sim_gene1<-setReadable(data_GO_sim, OrgDb = org.Mm.eg.db, keyType="ENTREZID")

I found that there are many GO term enriched with only one or two geneID involved.
image
I wonder if such results can be trusted?Or is there something wrong with my analysis?

@Mancang-Yu Mancang-Yu changed the title Question about the result of GO:BP analysis Question about the result of GO:BP analysis: only one or two gene related to one GO term Dec 26, 2024
@guidohooiveld
Copy link

Note that you applied the function simplify(), that removes redundant terms. Do the results in data_GO look fine? Thus, are all gene sets / GO categories comprised of at least 10 genes?

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