getGeneSummary: Create gene specific objects containing data from online...

Description Usage Arguments Details Value Methods (by class) Examples

Description

getGeneSummary populates and returns a vector of gene objects with information sourced from a series of html requests to the NIH and Uniport publicly available databases.

Usage

1
2
3
4
getGeneSummary(x)

## S4 method for signature 'geneanno'
getGeneSummary(x)

Arguments

x

object of class geneanno.

Details

Information returned from a database requests is parsed into a gene object, which are saved in a 'genes' subdirectory of the working directory. Each gene object is added to a vector of objects, which is then returned. Where gene information has previously been downloaded and objects saved (within the last seven days), gene objects are repopulated from the saved files so as to minimise server traffic. N.B. the function includes a random wait (of up to 5s) between each gene downloaded.

N.B. It is possible to define an alternative directory using slot(geneanno,"fileroot") <- "/path/to/directory"

Value

vector of gene objects, each containing the collated data from the public resources.

Methods (by class)

Examples

1
2
3
query <- matrix(c("Axitinib","BRAF","Imatinib","BRAF"),ncol=2,byrow=TRUE)
g <- getUniqueGeneList(geneanno(),query)
gs <- getGeneSummary(g)

biscuit13161/UNGeneAnno documentation built on May 26, 2019, 2:33 a.m.