vcf_reopen: Reopen a closed or stale VCF file handle.

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

View source: R/file.R

Description

Allows re-opening a previously opened VCF file.

Usage

1
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

1
2
3
4
5
6
	vcffile <- vcf_open( system.file( "extdata", "ex.vcf.gz" , package="WhopGenome") )
	vcffile
	vcf_close( vcffile )
	vcffile
	vcf_reopen( vcffile )
	vcffile

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