Learn R Programming

WhopGenome (version 0.9.4)

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

Value

A data frame

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, ... ).

Examples

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

Run the code above in your browser using DataLab