Project

goruby

0.0
No commit activity in last 3 years
No release in over 3 years
GoRuby makes it easy to interact with the Gene Ontology by using the infrastructure setup in R. By connecting to R using RSRuby, the database and methods can be interrogated. Plus, keeping the R library up to date is much simpler than having to keep a GO implementation up to date.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

 Project Readme

Goruby¶ ↑

GoRuby is a library to interact with the Gene Ontology by using the infrastructure setup in R. By connecting to R using RSRuby, the database interrogated and the surrounding R code can be leveraged. Plus, keeping the R library up to date is much simpler than having to trying to keep or store some other kind of data.

Installation¶ ↑

First install RSRuby. For me it was like this, but there’s more info at github.com/alexgutteridge/rsruby

$ gem install rsruby -- --with-R-dir=/usr/lib/R/ --with-R-include=/usr/share/R/include/

Then installing goruby, which should be comparatively simple:

$ gem install goruby

Make sure that the Bioconductor package GO.db is available. In R:

> library(GO.db)

If not, you can install like this in R:

> source("http://bioconductor.org/biocLite.R")
> biocLite("GO.db")

Usage¶ ↑

To extract a list of GO terms that have “melanosome” (GO:0042470) as an ancestor:

go.go_offspring('GO:0042470')  #=> ["GO:0033162", "GO:0034493"]

And to convert those offspring into human-readable names

go.go_offspring('GO:0042470').collect{|offspring| go.term(offspring)} #=> ["melanosome membrane", "melanosome lumen"]

More methods are documented in the rdoc at rubydoc.info/gems/goruby particularly in the Bio::Go class. Also, be sure to have fun.

Citation¶ ↑

Drug target prediction and prioritization: using orthology to predict essentiality in parasite genomes. Maria A Doyle, Robin B Gasser, Ben J Woodcroft, Ross S Hall and Stuart A Ralph BMC Genomics. 2010 Apr 3;11:222.

www.biomedcentral.com/1471-2164/11/222

Copyright © 2010 Ben J Woodcroft. See LICENSE for details.