Learn R Programming

WhopGenome (version 0.9.4)

vcf_parseNextSNP: Read until next SNP or next line and buffer it

Description

Read until next SNP or next line and buffer it. Use the vcf_getXXX functions to access specific fields of the line

Usage

vcf_parseNextSNP(vcffh) vcf_parseNextLine(vcffh)

Arguments

vcffh
VCF file handle

Value

None.

Details

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

See Also

vcf_isSNP, vcf_open, vcf_getPos

Examples

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

Run the code above in your browser using DataLab