getGenomicRegion,igvR-method {igvR} | R Documentation

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

### Description

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

### Usage

    ## 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

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

[Package igvR version 1.0.1 Index]