vcf_readLineDF {WhopGenome} | R Documentation |
Read a line of data from the given VCF file and return it as a data frame
vcf_readLineDF(vcffh)
vcffh |
VCF file handle |
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, ... ).
A data frame
Ulrich Wittelsbuerger
vcffile <- vcf_open( system.file( "extdata", "ex.vcf.gz" , package="WhopGenome") ) d <- vcf_readLineDF( vcffile )