showGenomicRegion: Set the visible region, by explicit chromLoc string, or by...

Description Usage Arguments Value Examples

Description

Set the visible region, by explicit chromLoc string, or by named features in any curently loaded annotation tracks

Usage

1
2
## S4 method for signature 'igvR'
showGenomicRegion(obj, region)

Arguments

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"

Value

""

Examples

 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)))
   }

igvR documentation built on Nov. 8, 2020, 7:14 p.m.