vcf_getcontignames: Return the contig/chromosome identifiers used in the VCF file

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

View source: R/misc.R

Description

Return the contig/chromosome identifiers used in the VCF file

Usage

1

Arguments

vcff

VCF file handle

Details

vcf_setregion for example requires one of these identifiers to be able to successfully select a region for extraction. Use .Call("VCF_getContigNames", vcff ) to eliminate the overhead of using the R wrapper function.

Value

Vector with contig and/or chromosome identifiers.

Author(s)

Ulrich Wittelsbuerger

See Also

vcf_setregion

Examples

1
2
3
	vcffile <- vcf_open( system.file( "extdata", "ex.vcf.gz" , package="WhopGenome") )
	vcf_getcontignames( vcffile )
	# [1] "Y"

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