Question: converting Probs Id to gene name
0
gravatar for Shamim Sarhadi
4.6 years ago by
IRAN
Shamim Sarhadi210 wrote:

HI

I have some probID and I want to convert that to genename

I've run below script in R

library("annotate")

library("rat2302.db")

select(rat2302.db, c("1368587_at", "1385248_a_at",c("SYMBOL","ENTREZID","GENENAME"))

and then I gave an error

Error in select(rat2302.db, c("1368587_at", "1385248_a_at"), c("SYMBOL",  :

  unused argument (c("SYMBOL", "ENTREZID", "GENENAME"))

pleas help me, what is the problem?

 

R genome • 1.5k views
ADD COMMENTlink modified 4.6 years ago by andrew.j.skelton735.9k • written 4.6 years ago by Shamim Sarhadi210
1
gravatar for andrew.j.skelton73
4.6 years ago by
London
andrew.j.skelton735.9k wrote:

It's always good to expand your commands and make sure you're not missing a bracket. 

select(x       = rat2302.db, 
       keys    = c("1368587_at", "1385248_a_at") ,
       columns = c("SYMBOL","ENTREZID","GENENAME"))​
ADD COMMENTlink written 4.6 years ago by andrew.j.skelton735.9k

I appreciated you for your help

I run your command and also run my codes, but I gave the same error that written here

library(annotate)

library(hgu133a.db)

select(x       = hgu133a.db,
 keys    = c("209116_x_at","211696_x_at") ,
 columns = c("SYMBOL","ENTREZID","GENENAME"))


Error in select(x = hgu133a.db, keys = c("209116_x_at", "211696_x_at"),  : 
  unused arguments (keys = c("209116_x_at", "211696_x_at"), columns = c("SYMBOL", "ENTREZID", "GENENAME"))

tank you again

ADD REPLYlink written 4.6 years ago by Shamim Sarhadi210
1

Running that code works fine for me. Run sessionInfo() and show the results. 

ADD REPLYlink written 4.6 years ago by andrew.j.skelton735.9k

 sessionInfo()
R version 3.2.1 (2015-06-18)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 8 x64 (build 9200)

locale:
[1] LC_COLLATE=English_United States.1252  LC_CTYPE=English_United States.1252    LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C                           LC_TIME=English_United States.1252    

attached base packages:
[1] stats4    parallel  stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
 [1] hgu133a.db_3.1.3     org.Hs.eg.db_3.1.2   RSQLite_1.0.0        DBI_0.3.1            annotate_1.46.0      XML_3.98-1.2        
 [7] AnnotationDbi_1.30.1 Biobase_2.28.0       BiocInstaller_1.18.4 GenomicRanges_1.20.5 GenomeInfoDb_1.4.0   IRanges_2.2.4       
[13] S4Vectors_0.6.0      BiocGenerics_0.14.0 

loaded via a namespace (and not attached):
[1] xtable_1.7-4  XVector_0.8.0 tools_3.2.1  

ADD REPLYlink written 4.6 years ago by Shamim Sarhadi210
1

maybe try appending your select command with the library you want the function to come from? AnnotationDbi::

library("annotate")
library("rat2302.db")​
AnnotationDbi::select(x       = rat2302.db, 
                      keys    = c("1368587_at", "1385248_a_at") ,
                      columns = c("SYMBOL","ENTREZID","GENENAME"))​

Note: be careful copying code from here to your R session, sometimes line breaks are hidden and R can't interpret them. 

ADD REPLYlink modified 4.6 years ago • written 4.6 years ago by andrew.j.skelton735.9k

Tank you again and again, it works fine for me too

 

ADD REPLYlink written 4.6 years ago by Shamim Sarhadi210
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 2338 users visited in the last hour