vcf_readLineVec {WhopGenome}R Documentation

Read a line of data from the given VCF file and return the fields as vector elements

Description

Read a line of data from the given VCF file and return the fields as vector elements

Usage

vcf_readLineVec(vcffh)
vcf_readLineVecFiltered(vcffh)

Arguments

vcffh

VCF file handle

Details

The latter version applies filtering set up with vcf_addfilter. Use .Call("VCF_readLineTSV", vcffh ) or .Call("VCF_readLineTSVFiltered", vcffh ) respectively to eliminate the overhead of using the R wrapper function.

Value

A vector where each element is a field from a line of data in the VCF

Author(s)

Ulrich Wittelsbuerger

See Also

vcf_addfilter,vcf_describefilters

Examples

	vcffile <- vcf_open( system.file( "extdata", "ex.vcf.gz" , package="WhopGenome") )
	vcf_readLineVec( vcffile )

[Package WhopGenome version 0.9.7 Index]