Skip to content

Instantly share code, notes, and snippets.

@jergosh
Last active January 1, 2016 14:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jergosh/8159092 to your computer and use it in GitHub Desktop.
Save jergosh/8159092 to your computer and use it in GitHub Desktop.
library(biomaRt)
ensembl <- useMart(biomart = "ENSEMBL_MART_ENSEMBL", dataset="hsapiens_gene_ensembl",
host="www.ensembl.org", path="/biomart/martservice")
attrs <- c("ensembl_gene_id", "upstream_flank")
gene_ann <- getBM(attributes=attrs, filters=list(ensembl_gene_id="ENSG00000165702", upstream_flank=100), mart=ensembl, checkFilters=F)
gene_ann
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment