Learn R Programming

WhopGenome (version 0.9.4)

tabix_read: 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

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.

Details

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

See Also

tabix_open

Examples

Run this code

##
##	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( gffh != NULL )
 tabix_read( gffh )
 tabix_close( gffh )
 gffh
}

Run the code above in your browser using DataLab