Learn R Programming

WhopGenome (version 0.9.4)

tabix_getregion: Return the currently selected region of the given tabix file.

Description

Return the currently selected region of the given tabix file. The resulting value does not reflect the current read position inside that region, i.e. you cannot infer whether there are any lines left for reading from that region.

Usage

tabix_getregion( tabfh )

Arguments

tabfh
Tabix handle, once returned by tabix_open

Value

Tabix file handle

Details

Use .Call("tabix_getRegion", tabfh ) to eliminate the slight overhead of using the R wrapper function.

See Also

tabix_open

Examples

Run this code

##
##	Example :
##
gffgzfile  <- system.file("extdata", "ex.gff3.gz", package = "WhopGenome" )
gffh <- tabix_open( gffgzfile )
gffh
tabix_setregion( gffh, "ex.1", 1, 400 )
tabix_getregion( gffh )
tabix_close( gffh )
gffh

Run the code above in your browser using DataLab