vcf_eor {WhopGenome} | R Documentation |
When reading SNP info within a region defined by VCF_setRegion, this function returns TRUE/FALSE to indicate whether or not all lines within that region have been read.
vcf_eor( vcffh )
vcffh |
Handle of a VCF file opened by VCF_open |
Use .Call("VCF_eor", vcffh ) to eliminate the overhead of using the R wrapper function.
TRUE if all SNPs inside the previously defined region have been read.
Ulrich Wittelsbuerger
vcffile <- vcf_open( system.file( "extdata", "ex.vcf.gz" , package="WhopGenome") ) vcf_setregion(vcffile, "Y", 1, 100000 ) while( !vcf_eor(vcffile) ) { vcf_readLineVec( vcffile ) }