fai_open: Open a faidx-indexed FASTA file

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

View source: R/fai.R

Description

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

Usage

1
fai_open( filename )

Arguments

filename

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

Details

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

Value

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

Author(s)

Ulrich Wittelsbuerger

See Also

fai_reopen, fai_query3, fai_query5

Examples

1
2
3
4
5
6
##
##	Example :
##
faifile  <- system.file("extdata", "ex.fasta", package = "WhopGenome")
faifh <- fai_open( faifile )
stopifnot( !is.null(faifh) )

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