Learn R Programming

WhopGenome (version 0.9.4)

fai_reopen: 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

Value

TRUE if call succeeds, FALSE if it fails.

Details

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

See Also

fai_open

Examples

Run this code
	##
	##	Example :
	##
	faifile  <- system.file("extdata", "ex.fasta", package = "WhopGenome")
	faifh <- fai_open( faifile )
	stopifnot( faifh != NULL )
	result <- fai_query4( faifh , "1", 100 , 200 )
	print( result )
	fai_close( faifh )
	fai_reopen( faifh )
	result <- fai_query4( faifh , "1", 100 , 110 )
	print( result )

Run the code above in your browser using DataLab