Entering edit mode
I am trying to get the promotors region using the following code but got an error.
query_ref <- ucscTableQuery(session, track="RefSeq Genes",table="refGene",
range=GRangesForUCSCGenome("mm9", "chr12"))
prom.refgene <- promoters(query_ref, upstream = 1000, downstream = 1000, use.names = FALSE)
Error in (function (classes, fdef, mtable) : unable to find an inherited method for function ‘promoters’ for signature ‘"UCSCTableQuery"’
Thanks for the suggestion, I did it using
track()
function.