Description Usage Arguments Value Examples
Set the visible region, by explicit chromLoc string, or by named features in any curently loaded annotation tracks
1 2 | ## S4 method for signature 'igvR'
showGenomicRegion(obj, region)
|
obj |
An object of class igvR |
region |
A genomic location (rendered "chr5:9,234,343-9,236,000" or as a list: list(chrom="chr9", start=9234343, end=9236000)) or a labeled annotation in a searchable track, often a gene symbol, eg "MEF2C" |
""
1 2 3 4 5 6 7 8 9 10 | if(interactive()){
igv <- igvR()
setGenome(igv, "hg38")
showGenomicRegion(igv, "MEF2C")
x <- getGenomicRegion(igv)
#--------------------
# zoom out 2kb
#--------------------
showGenomicRegion(igv, with(x, sprintf("%s:%d-%d", chrom, start-1000, end+1000)))
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.