Learn R Programming

WhopGenome (version 0.9.4)

vcf_getnumcontigs: Get the number of different contigs/chromosomes stored in the file

Description

Get the number of different contigs/chromosomes stored in the file

Usage

vcf_getnumcontigs(vcff)

Arguments

vcff
VCF file handle

Value

The number of different contigs/chromosomes stored in the file.

Details

Use .Call("VCF_getNumContig", vcff ) to eliminate the overhead of using the R wrapper function.

Examples

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

Run the code above in your browser using DataLab