Description Usage Arguments Value Author(s) See Also Examples
A generic function for launching a genome browser.
1 2 3 4 5 6 |
object |
A |
browser |
The name of the genome browser. |
range |
A genome identifier or a
|
view |
Whether to open a view. |
trackParams |
Named list of parameters to pass to
|
viewParams |
Named list of parameters to pass to
|
name |
The name for the track. |
... |
Arguments passed to |
Returns a BrowserSession
.
Michael Lawrence
BrowserSession
and
BrowserView
, the two main classes for interfacing
with genome browsers.
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## Not run:
## open UCSC genome browser:
browseGenome()
## to view a specific range:
range <- GRangesForUCSCGenome("hg18", "chr22", IRanges(20000, 50000))
browseGenome(range = range)
## a slightly larger range:
browseGenome(range = range, end = 75000)
## with a track:
track <- import(system.file("tests", "v1.gff", package = "rtracklayer"))
browseGenome(GRangesList(track))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.