Question: KEGGprofile: "Error in phyper - Non-numeric argument to mathematical function" when using non model organism
0
gravatar for artur
4.7 years ago by
artur70
Germany
artur70 wrote:
Hi, I am using KEGGprofile to perform KEGG enrichment for a non model organism. Using the data from the R documentation i perfectely obtaine the enrichment. >data(pho_sites_count) >genes<-names(rev(sort(pho_sites_count[,1]))[1:300]) > summary(genes) Length Class Mode 300 character character > is.vector(genes) [1] TRUE >pho_KEGGresult<-find_enriched_pathway(genes,specis='hsa') However, when I use my datasets, which I submit as character vector with NCBI ID, I get the following error: Error in phyper(kegg_result_length[x], keggpathway2gene_length[x], length(unique(unlist(keggpathway2gene))) - : Non-numeric argument to mathematical function Any suggestion how to overcome this problem? Thank you very much. [[alternative HTML version deleted]]
keggprofile • 713 views
ADD COMMENTlink modified 4.7 years ago by zhao shilin60 • written 4.7 years ago by artur70
Answer: KEGGprofile: "Error in phyper - Non-numeric argument to mathematical function" w
0
gravatar for zhao shilin
4.7 years ago by
zhao shilin60
zhao shilin60 wrote:
Dear Stafano, I think the ID from the non model organism may cause the error. Would you please tell me the specie you tested and send me some of your genes. So that I can have a try. Thank you! Best, Shilin 2014-09-13 3:03 GMT-05:00 stefano romano <stfn.romano at="" gmail.com="">: > Hi, > > I am using KEGGprofile to perform KEGG enrichment for a non model organism. > Using the data from the R documentation i perfectely obtaine the > enrichment. > > >data(pho_sites_count) > >genes<-names(rev(sort(pho_sites_count[,1]))[1:300]) > > summary(genes) > Length Class Mode > 300 character character > > is.vector(genes) > [1] TRUE > >pho_KEGGresult<-find_enriched_pathway(genes,specis='hsa') > > However, when I use my datasets, which I submit as character vector with > NCBI ID, I get the following error: > > Error in phyper(kegg_result_length[x], keggpathway2gene_length[x], > length(unique(unlist(keggpathway2gene))) - : > Non-numeric argument to mathematical function > > Any suggestion how to overcome this problem? > > Thank you very much. > > [[alternative HTML version deleted]] > > _______________________________________________ > Bioconductor mailing list > Bioconductor at r-project.org > https://stat.ethz.ch/mailman/listinfo/bioconductor > Search the archives: > http://news.gmane.org/gmane.science.biology.informatics.conductor > [[alternative HTML version deleted]]
ADD COMMENTlink written 4.7 years ago by zhao shilin60
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 16.09
Traffic: 294 users visited in the last hour