clusterprofiler: id conversion & the problem of package "org.Hs.eg.db"
1
0
Entering edit mode
3.1 years ago
ziyan • 0

I want to implement id conversion using clusterProfiler. But I met a bug as following: org.Hs.eg.db I successfully library package org.Hs.eg.db, but I couldn't load it to implement ID conversion using function bitr in R package clusterProfiler. What's wrong with it? I couldn't figure it out and please help.

clusterprofile id conversion • 2.1k views
ADD COMMENT
0
Entering edit mode

Did you load the package? Library() It would helpful for if you could provide some more information.

ADD REPLY
0
Entering edit mode

enter image description here I have loaded the package, but it didn't work.

ADD REPLY
0
Entering edit mode

R version?

ADD REPLY
2
Entering edit mode
3.1 years ago
tbkuipers ▴ 30

You should use the database without quotation marks:

orgDb=org.Hs.eg.db

Or you can try:

library(org.Hs.eg.db)
library(ensembldb)

genelist <- c("TSPAN6", "OPTN", "XIST")
ensembldb::select(
  x = org.Hs.eg.db,
  keys = genelist,
  keytype = "SYMBOL",
  columns = c("ENTREZID", "ENSEMBL")
)

====
  SYMBOL ENTREZID         ENSEMBL
1 TSPAN6     7105 ENSG00000000003
2   OPTN    10133 ENSG00000123240
3   XIST     7503 ENSG00000229807
====

Other nice packages to do these things are AnnotationDbi & biomaRt

Best, Tom

ADD COMMENT
0
Entering edit mode

Thanks! It worked!

ADD REPLY

Login before adding your answer.

Traffic: 1365 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