getGenomicRegion: Obtain the chromosome and coordiates of the currently display...

Description Usage Arguments Value Examples

Description

Obtain the chromosome and coordiates of the currently display genomic region.

Usage

1
2
## S4 method for signature 'igvR'
getGenomicRegion(obj)

Arguments

obj

An object of class igvR

Value

A list with four fields: chrom (character), start(numeric), end(numeric), string(character)

Examples

1
2
3
4
5
6
7
8
9
if(interactive()){
   igv <- igvR()
   Sys.sleep(2)
   setGenome(igv, "hg38")
   Sys.sleep(5)
   showGenomicRegion(igv, "MEF2C")
   getGenomicRegion(igv)
     # list(chrom="chr5", start=88717241, end=88884466, string="chr5:88,717,241-88,884,466")
   }

paul-shannon/IGV documentation built on Oct. 16, 2018, 8:03 a.m.