fai_build: Build a .fai-index for the given FASTA file.

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

View source: R/fai.R

Description

Build a .fai-index for the given FASTA file.

Usage

1
fai_build( filename )

Arguments

filename

Name of the FASTA file for which an index file should be built.

Details

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

Value

TRUE if call succeeds, FALSE if it fails.

Author(s)

Ulrich Wittelsbuerger

See Also

fai_open

Examples

1
2
3
4
5
6
7
8
9
##
##	Example :
##
faifile  <- system.file("extdata", "ex.fasta", package = "WhopGenome")
faiindexfile <- paste( sep="", faifile, ".fai" )	# construct name of index file
file.remove( faiindexfile )				# remove existing index
fai_build( faifile )					# re-create index
stopifnot( file.exists(faiindexfile) )	# check whether index file exists
print( "All OK" )

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