tabix_setregion: Reopen a Tabix-indexed file if the filehandle became invalid.

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

View source: R/tabix.R

Description

Reopen a Tabix-indexed file if the filehandle became invalid.

Usage

1
tabix_setregion( tabfh, tid, beginpos, endpos )

Arguments

tabfh

Tabix handle, once returned by tabix_open

tid

A string naming one of the contig/chromosome identifiers stored in the Tabix indexed file

beginpos

Earliest position from which subsequent tabix_read/tabix_readraw calls return lines

endpos

Last position to return lines from with tabix_read/tabix_readraw

Details

Use .Call("tabix_setRegion", tabfh, tid, beginpos, endpos ) 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
##
##	Example :
##
gffgzfile  <- system.file("extdata", "ex.gff3.gz", package = "WhopGenome" )
gffh <- tabix_open( gffgzfile )
gffh
tabix_setregion( gffh, "ex.1", 1, 400 )
tabix_close( gffh )
gffh

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