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

Error in get("DOLite2EG") : object 'DOLite2EG' not found when re-run enrichDO #85

Open
zxy0912 opened this issue Sep 1, 2024 · 1 comment

Comments

@zxy0912
Copy link

zxy0912 commented Sep 1, 2024

conduct the DO analysis with DOSE::enrichDO(), problem with loading DOLite dataset.

library(clusterProfiler)
library(org.Hs.eg.db)
library(enrichplot)
library(GOSemSim)

library(DOSE)


runDO <- function(gene_set,  maxGSSize = 500) {
  eg <- bitr(gene_set,
             fromType = "SYMBOL", 
             toType = "ENTREZID", 
             OrgDb = "org.Hs.eg.db")
  
  edo_res <- enrichDO(gene = eg$ENTREZID,
                      # OrgDb =org.Hs.eg.db,
                      ont = "DOLite",
                      pAdjustMethod = "BH",
                      minGSSize = 10,
                      maxGSSize = maxGSSize,
                      pvalueCutoff = 1,
                      qvalueCutoff = 0.2,
                      readable = TRUE)
  return(edo_res)
}

first time is OK

> edo_res <- runDO(genelist)
'select()' returned 1:1 mapping between keys and columns

failed when re-run the function

> edo_res <- runDO(genelist)
'select()' returned 1:1 mapping between keys and columns
Error in get("DOLite2EG") : object 'DOLite2EG' not found

This issue can be fixed after reloading the DOSE package.

> detach("package:DOSE")
> library(DOSE)
@GuangchuangYu
Copy link
Member

DOLite was removed in the current version.

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