Learn R Programming

WhopGenome (version 0.9.4)

vcf_readLineRaw: Read a line of data from the given VCF file and return it as a string without postprocessing.

Description

Read a line of data from the given VCF file and return it as a string without postprocessing.

Usage

vcf_readLineRaw( vcffh, res )
vcf_readLineRawFiltered( vcffh, res )

Arguments

vcffh
VCF file handle
res
DEPRECATED : string variable receiving the data read from the file

Value

For the 1-argument versions: A raw string representing a line of data from the file or FALSE if no more lines to readFor the 2-argument versions: TRUE/FALSE whether another line could be read. The line itself is stored in the variable given for

Details

NOTE : The 2-argument version is DEPRECATED and will cause warning messages!

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.

Examples

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

Run the code above in your browser using DataLab