A function leveraging the biomaRt package to retrieve gene chromosome and start and end positions from Ensembl.
Usage
getBioMartData(genes,verbose=FALSE)
Arguments
genes
A vector of gene names matching hgnc_symbol in the Ensembl database.
verbose
A Boolean indicating whether to output the funcitons progress in terms of the dimensions of the data.frame being constructed. Default is FALSE.
Value
A data.frame object with columns 'gene','chr','start', and 'end', suitable for input to the setGeneTable function.
References
Durinck S., Spellman P.T., Birney E. and Huber W. (2009) Mapping identifiers for the integration of genomic datasets with the R/Bioconductor package biomaRt, Nature Protocols, 4, 1184--1191.