Learn R Programming

WhopGenome (version 0.9.4)

vcf_getheaderline: Return one of the header lines of the VCF file

Description

Return one of the header lines of the VCF file

Usage

vcf_getheaderline(vcff, whichnum)

Arguments

vcff
VCF file handle
whichnum
Number of header line to retrieve

Value

A string containing the full header line.

Details

Use .Call("VCF_getHeaderLine", vcff, whichnum ) 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_getheaderline( vcffile , as.integer(0) )
	vcf_getheaderline( vcffile , as.integer(1) )

Run the code above in your browser using DataLab