tabix_restartregion: Reset the currently selected region to the beginning.

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

View source: R/tabix.R

Description

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

Usage

1

Arguments

tabfh

Tabix handle, once returned by tabix_open

Details

Use .Call("tabix_restartRegion", 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
11
12
13
14
15
16
17
##
##	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

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