tabix_read {WhopGenome}R Documentation

Read a line from a tabix_open()'ed file

Description

Read a line from a tabix_open()'ed file

Usage

tabix_read( tabfh )
tabix_readraw( tabfh )

Arguments

tabfh

Tabix file handle as returned by tabix_open

Details

Instead of tabix_readraw() you can use .Call("tabix_readLine", tabfh ) to eliminate the slight overhead of using the R wrapper function.

Value

A line of data from the indexed data file. tabix_read splits the line up into its fields and returns a vector. tabix_readraw returns the line as stored in the file.

Author(s)

Ulrich Wittelsbuerger

See Also

tabix_open

Examples


##
##	Example : (NOT RUN)
##

print("Opening and reading")
gffgzfile  <- system.file("extdata", "ex.gff3.gz", package = "WhopGenome" )
if( file.exists(gffgzfile) )
{
 gffgzfile
 gffh <- tabix_open( gffgzfile )
 gffh
 stopifnot( !is.null(gffh) )
 tabix_read( gffh )
 tabix_close( gffh )
 gffh
}

[Package WhopGenome version 0.9.7 Index]