Error in .testForValidKeys "org.Rn.eg.db"
1
0
Entering edit mode
z.he • 0
@zhe-11874
Last seen 7.5 years ago

Hi,

I want to use the "org.Rn.eg.db" package to get more information about my gene list, but I always get the same error message posted below. The keys "t1" is a character vector with ensembl gene id list. Could someone tell me what is wrong?
> geneinfo <- select(org.Rn.eg.db, keys=t1,
+                    columns=c("ENSEMBL","SYMBOL","GENENAME"),
+                    keytype="ENSEMBL")
Error in .testForValidKeys(x, keys, keytype, fks) :
  None of the keys entered are valid keys for 'ENSEMBL'. Please use the keys method to see a listing of valid arguments.
> head(t1)
[1] "ENSG00000000003" "ENSG00000000971" "ENSG00000001084" "ENSG00000001167" "ENSG00000001460" "ENSG00000001461"

Any help will be appreciated! Thanks

annotation • 11k views
ADD COMMENT
2
Entering edit mode
Guido Hooiveld ★ 3.9k
@guido-hooiveld-2020
Last seen 12 hours ago
Wageningen University, Wageningen, the …

Your t1 vector contains HUMAN Ensembl IDs! Hence they keys are invalid for the rat database. Rat genes look like this: ENSRNOG00000018126 (Abca1).

For your genes you should use the org.Hs.eg.db.

 

> library(org.Hs.eg.db)
> t1 <- c( "ENSG00000000003", "ENSG00000000971", "ENSG00000001084", "ENSG00000001167", "ENSG00000001460", "ENSG00000001461")
>
> geneinfo <- select(org.Hs.eg.db, keys=t1,
+                 columns=c("ENSEMBL","SYMBOL","GENENAME"),
+                 keytype="ENSEMBL")
'select()' returned 1:1 mapping between keys and columns
> geneinfo
          ENSEMBL SYMBOL                                     GENENAME
1 ENSG00000000003 TSPAN6                                tetraspanin 6
2 ENSG00000000971    CFH                          complement factor H
3 ENSG00000001084   GCLC  glutamate-cysteine ligase catalytic subunit
4 ENSG00000001167   NFYA nuclear transcription factor Y subunit alpha
5 ENSG00000001460  STPG1       sperm tail PG-rich repeat containing 1
6 ENSG00000001461 NIPAL3                NIPA like domain containing 3
>

 

ADD COMMENT
0
Entering edit mode

Thanks!!!!!!
 

ADD REPLY

Login before adding your answer.

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