vcf_readLineDF: Read a line of data from the given VCF file and return it as...

Description Usage Arguments Details Value Author(s) Examples

View source: R/read_simple.R

Description

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

Usage

1

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

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

WhopGenome documentation built on May 1, 2019, 10:12 p.m.