Learn R Programming

WhopGenome (version 0.9.4)

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

Description

Return the contig/chromosome identifiers used in the VCF file

Usage

vcf_getcontignames(vcff)

Arguments

vcff
VCF file handle

Value

Vector with contig and/or chromosome identifiers.

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.

See Also

vcf_setregion

Examples

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

Run the code above in your browser using DataLab