Learn R Programming

WhopGenome (version 0.9.4)

vcf_readLineVec: 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

Value

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

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.

See Also

vcf_addfilter,vcf_describefilters

Examples

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

Run the code above in your browser using DataLab