Learn R Programming

WhopGenome (version 0.9.4)

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

Value

Returns the reopened file handle.

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.

See Also

vcf_open

Examples

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

Run the code above in your browser using DataLab