vcf_readLineRaw: 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 string without postprocessing.

Usage

1
2
3

Arguments

vcffh

VCF file handle

Details

vcf_readLineRawFiltered applies the filtering rules (see vcf_describefilters) and does not return any lines that do not pass the filter rules.

Use .Call("VCF_readLineRaw", vcffh ) and .Call("VCF_readLineRawFiltered", vcffh ) respectively, to eliminate the overhead of using the R wrapper function.

Value

For the 1-argument versions: A raw string representing a line of data from the file or FALSE if no more lines to read

Author(s)

Ulrich Wittelsbuerger

Examples

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

Example output

(II) VCF version is 4.1
(II) VCF File contains 2 samples

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