Learn R Programming

WhopGenome (version 0.9.4)

tabix_restartregion: Reset the currently selected region to the beginning.

Description

Reset the currently selected region so that the next read call will return the first line inside that region.

Usage

tabix_restartregion( tabfh )

Arguments

tabfh
Tabix handle, once returned by tabix_open

Value

Tabix file handle

Details

Use .Call("tabix_restartRegion", 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_read( gffh )
tabix_read( gffh )
tabix_restartregion( gffh )
tabix_read( gffh )
tabix_read( gffh )
tabix_close( gffh )
gffh

Run the code above in your browser using DataLab