fai_build {WhopGenome} | R Documentation |
Build a .fai-index for the given FASTA file.
fai_build( filename )
filename |
Name of the FASTA file for which an index file should be built. |
Use .Call("FAI_build", filename ) to eliminate the overhead of using the R wrapper function.
TRUE if call succeeds, FALSE if it fails.
Ulrich Wittelsbuerger
fai_open
## ## 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" )