I would like to be able to save the UCSC genome browser image view generated by the browserView method in rtracklayer without having to manually do it from the browser. Is this possible?
I.e. for the example:
session <- browserSession()
GRangesForUCSCGenome("hg19", "chr2", IRanges(20000, 50000)))
## only view "knownGene" track
browserView(session, track = "knownGene")
browserView(session, track = "knownGene", save = "UCSCview.pdf")
Is that possible? Or is there a similar solution? I know tracks can be exported as bed files.