fonction queryMany not found
2
0
Entering edit mode
@dahmani_amel-13058
Last seen 6.9 years ago

Hi everyone, 

i installed mygene package and i'd try to use it to convert gene-symbols to gene-EntrezID but it returns me this error: 

> xli <- c('Glb1_mapped', 'Gm1012', 'Gnptag' )
> queryMany(xli, scopes="symbol", fields="entrezgene", species="rat")
Error in queryMany(xli, scopes = "symbol", fields = "entrezgene", species = "rat") : 
  impossible de trouver la fonction "queryMany"

 

Can you tell me please what's wrong?

Thank you in advance

Amal

mygene querymany • 2.0k views
ADD COMMENT
1
Entering edit mode
@james-w-macdonald-5106
Last seen 11 hours ago
United States

Any time you see the error

Impossible de trouver la fonction 'queryMany'

it means that you haven't loaded the package that contains that function yet. So if you have installed mygene, you still need to do

library(mygene)

in order to use any of the functions in that package.

ADD COMMENT
0
Entering edit mode
@dahmani_amel-13058
Last seen 6.9 years ago

Thank you so much for replying James! 

i've loaded the package, but i still have an error: 

> xli <- c('Glb1_mapped', 'Gm1012', 'Gnptag' )
> queryMany(xli, scopes="symbol", fields="entrezgene", species="rat")
Finished
Error in rename(df, c(X_id = "_id")) : 
  Some 'from' names in value not found on 'x': X_id

 

 

Does it mean that the symbols are simply not found? 

Thanks

 

ADD COMMENT
0
Entering edit mode

If you have further questions, please use the ADD COMMENT button, rather than adding another answer (when you are not in fact adding an answer at all!).

The error you get is from an internal function that is simply intended to change a name in the returned DataFrame. If you were to debug the function, you would see that you are correct - it's because none of the symbols are found.

ADD REPLY
0
Entering edit mode

Oh i'm sorry, it's my first use of this forum!!

thank you for your answer, it works with found symbols :)

 

ADD REPLY

Login before adding your answer.

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