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()
browserView(session,
GRangesForUCSCGenome("hg19", "chr2", IRanges(20000, 50000)))
## only view "knownGene" track
browserView(session, track = "knownGene")
Something like
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.
Many thanks.
Jim
Did you figure out how to save an image of the UCSC browserView using rtracklayer?
Thanks!