vcf_readLineDF {WhopGenome}R Documentation

Read a line of data from the given VCF file and return it as a data frame

Description

Read a line of data from the given VCF file and return it as a data frame

Usage

vcf_readLineDF(vcffh)

Arguments

vcffh

VCF file handle

Details

Reads a line of data from the given VCF file, splits it up into its components (fields) and fills a data.frame with the contents of the fields and names the entries according to the header line of the VCF (e.g. CHROM, POS, ID, REF, ALT, ... ).

Value

A data frame

Author(s)

Ulrich Wittelsbuerger

Examples

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

[Package WhopGenome version 0.9.7 Index]