I have a set of variants stored in a GRanges, and I'd like to get the surrounding reference sequence (+/- 100 bp) for each one. I can use rtracklayer to view the variants in UCSC, and I can then get the surrounding sequence by going to the table browser, selecting my custom track and "output format: sequence", then specifying the number of extra bases I want in the browser window. Is there a way to do this programmatically from within R?