Last data update: 2014.03.03
|
R: Reopen a FAIhandle that has become stale.
fai_reopen | R Documentation |
Reopen a FAIhandle that has become stale.
Description
Reopen a FAIhandle that has become stale, e.g. by restarting R or loading a workspace containing a FAIhandle variable.
Usage
fai_reopen( faifh )
Arguments
faifh |
A FAIhandle to a .fai-indexed FASTA file
|
Details
Use .Call("FAI_reopen", faifh ) to eliminate the slight 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
##
## Example :
##
faifile <- system.file("extdata", "ex.fasta", package = "WhopGenome")
faifh <- fai_open( faifile )
stopifnot( faifh != NULL )
result <- ""
fai_query5( faifh , "1", 100 , 200, result )
print( result )
fai_close( faifh )
fai_reopen( faifh )
result <- ""
fai_query5( faifh , "1", 100 , 110, result )
print( result )
Results
|