vcf_getcontignames {WhopGenome} | R Documentation |
Return the contig/chromosome identifiers used in the VCF file
vcf_getcontignames(vcff)
vcff |
VCF file handle |
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.
Vector with contig and/or chromosome identifiers.
Ulrich Wittelsbuerger
vcf_setregion
vcffile <- vcf_open( system.file( "extdata", "ex.vcf.gz" , package="WhopGenome") ) vcf_getcontignames( vcffile ) # [1] "Y"