vcf_reopen {WhopGenome}R Documentation

Reopen a closed or stale VCF file handle.

Description

Allows re-opening a previously opened VCF file.

Usage

vcf_reopen(vcffh)

Arguments

vcffh

VCF file handle as returned by vcf_open

Details

If a file handle was closed (vcf_close) or became stale (e.g. after an R crash), it can be reactivated with this function. Use .Call("VCF_reopen", vcffh ) to eliminate the overhead of using the R wrapper function.

Value

Returns the reopened file handle.

Author(s)

Ulrich Wittelsbuerger

See Also

vcf_open

Examples

	vcffile <- vcf_open( system.file( "extdata", "ex.vcf.gz" , package="WhopGenome") )
	vcffile
	vcf_close( vcffile )
	vcffile
	vcf_reopen( vcffile )
	vcffile

[Package WhopGenome version 0.9.7 Index]