fai_reopen: Reopen a FAIhandle that has become stale.

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

View source: R/fai.R

Description

Reopen a FAIhandle that has become stale, e.g. by restarting R or loading a workspace containing a FAIhandle variable.

Usage

1
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
	##
	##	Example :
	##
	faifile  <- system.file("extdata", "ex.fasta", package = "WhopGenome")
	faifh <- fai_open( faifile )
	stopifnot( !is.null(faifh) )
	result <- fai_query4( faifh , "1", 100 , 200 )
	print( result )
	fai_close( faifh )
	fai_reopen( faifh )
	result <- fai_query4( faifh , "1", 100 , 110 )
	print( result )

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