English 中文(简体)
R statistical package: wrapping GOFrame objects
原标题:

I m trying to generate GOFrame objects to generate a gene ontology mapping in R for unsupported organisms (see http://www.bioconductor.org/packages/release/bioc/vignettes/GOstats/inst/doc/GOstatsForUnsupportedOrganisms.pdf).

However, following the instructions literally doesn t help me. Here s the code I execute (R 2.9.2 on ubuntu koala 64 bit)

library("AnnotationDbi")
library("org.Hs.eg.db")
frame = toTable(org.Hs.egGO)
goframeData = data.frame(frame$go_id, frame$Evidence, frame$gene_id)
goFrame = GOFrame(goframeData, organism = "Homo sapiens")

However, when i try to map my dataframe into a goFrame object, I get this mistake

Error: could not find function "GOFrame"

I m pretty sure the GOFrame wrapper is in the AnnotationDBI library, so I m puzzled. Any help is extra appreciated :-)

最佳回答

I think it s your R version. GOFrame wrapping is described to be supported in the bioconductor AnnotationDBI only since the latest release.

I just tried it and it works with R 2.10.0

Enjoy!

问题回答

As per the package description, the Go.db package is only suggested rather than depended upon. Hence, a simple

 library(GO.db)

seems to be what you need to do.





相关问题
How to manage a pageview DB

I am interested in tracking my users pageviews on my site. Being that traffic is expanding very quickly, I am worried about robots, etc, and I also want to be able to use tracked data live to alter ...

Statistics Question

Suppose I conduct a survey of 10 people asking whether to rank a movie as 0 to 4 stars. Allowable answers are 0, 1, 2, 3, and 4. The mean is 2.0 stars. How do I calculate the certainty (or ...

Calculating variance with large numbers

I haven t really used variance calculation that much, and I don t know quite what to expect. Actually I m not too good with math at all. I have a an array of 1000000 random numeric values in the ...

R statistical package: wrapping GOFrame objects

I m trying to generate GOFrame objects to generate a gene ontology mapping in R for unsupported organisms (see http://www.bioconductor.org/packages/release/bioc/vignettes/GOstats/inst/doc/...

Generating correlated numbers

Here is a fun one: I need to generate random x/y pairs that are correlated at a given value of Pearson product moment correlation coefficient, or Pearson r. You can imagine this as two arrays, array ...

Multivariate time series modelling in R

I want do fit some sort of multi-variate time series model using R. Here is a sample of my data: u cci bci cpi gdp dum1 dum2 dum3 dx 16.50 14.00 53.00 45.70 80....

热门标签