Learn R Programming

WhopGenome (version 0.9.4)

fai_open: Open a faidx-indexed FASTA file

Description

Opens a FASTA file that has an associated .fai index file

Usage

fai_open( filename )

Arguments

filename
File name of the FASTA file. A file filename.fai is expected to reside in the same path.

Value

Returns a FAIhandle that is required for fai_query3, fai_query5, fai_close

Details

Use .Call("FAI_open", filename ) to eliminate the slight overhead of using the R wrapper function.

See Also

fai_reopen, fai_query3, fai_query5

Examples

Run this code

##
##	Example :
##
faifile  <- system.file("extdata", "ex.fasta", package = "WhopGenome")
faifh <- fai_open( faifile )
stopifnot( faifh != NULL )

Run the code above in your browser using DataLab