vcf_getnumcontigs {WhopGenome} | R Documentation |
Get the number of different contigs/chromosomes stored in the file
vcf_getnumcontigs(vcff)
vcff |
VCF file handle |
Use .Call("VCF_getNumContig", vcff ) to eliminate the overhead of using the R wrapper function.
The number of different contigs/chromosomes stored in the file.
Ulrich Wittelsbuerger
vcffile <- vcf_open( system.file( "extdata", "ex.vcf.gz" , package="WhopGenome") ) vcf_getnumcontigs( vcffile ) # [1] 1