R/GNapi - R package to connect to the GeneNetwork API

R/GNapi is an R package for connecting to the GeneNetwork API.


Installation

Install GNapi from R universe:

install.packages("GNapi", repos="https://rqtl.r-universe.dev")

Alternatively, install it from GitHub with the remotes package:

#install.packages("remotes")
library(remotes)
install_github("rqtl/GNapi")

Usage

For an understanding of the GeneNetwork API, see its documentation, as well as Zachary Sloan's tutorial.

The R/GNapi package has a set of functions for connecting to the GeneNetwork API to grab different bits of information or data.

For further examples, see the online vignette, which is also available from within R:

vignette("GNapi")

Note that we enforce a delay between calls to the API, to slow repeated calls within a loop. The default is 1 sec; it can be controlled with the option GNapi_delay. For example, to make the delay 0.5 seconds, use:

options(GNapi_delay=0.5)

License

R/GNapi is released under the MIT license.