Description Usage Arguments Details Value Author(s) See Also Examples
Once the read-functions reached the end of the previously set region, no more results are returned. If, for example for a two-pass algorithm, the same region should be scanned again from the start, this function is the key.
1 | vcf_restartregion(vcffh)
|
vcffh |
Handle of a VCF file, as returned by vcf_open() |
Alternative to calling vcf_setregion() with the same parameters again. Use .Call("VCF_restartRegion", vcffh ) to eliminate the overhead of using the R wrapper function.
TRUE if the region could be rewound, FALSE if not.
Ulrich Wittelsbuerger
vcf_setregion, vcf_open
1 2 3 4 5 6 7 8 9 10 11 12 13 | ##
## Example:
##
vcffile <- vcf_open( system.file( "extdata" , "ex.vcf.gz" , package="WhopGenome" ) )
vcf_setregion(vcffile, "Y", 1, 100000 )
vcf_readLineVec( vcffile )
vcf_readLineVec( vcffile )
vcf_restartregion( vcffile )
vcf_readLineVec( vcffile )
vcf_readLineVec( vcffile )
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.