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

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/tabix.R

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

1
tabix_getregion( tabfh )

Arguments

tabfh

Tabix handle, once returned by tabix_open

Details

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

Value

Tabix file handle

Author(s)

Ulrich Wittelsbuerger

See Also

tabix_open

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
##
##	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

WhopGenome documentation built on May 1, 2019, 10:12 p.m.