Description Usage Arguments Details Value Author(s) See Also Examples
Function to retrieve variants or sequence calls of interested positions from tabix indexed files.
1 |
Pos |
A two columns data.frame or matrix includes chromosome and position for each variant (or sequence) call. |
Seqfile |
A tabix indexed VCF file include all variant (or sequence) calls to retrieve. |
file |
File path to write out the retrieved results as a plain file in VCF format. |
tabix |
The path of tabix function. if NULL, scanTabix function from Rsamtools will be used instead. |
region |
The number of positions for tabix to retrieve at the same time. Too big number will not work for tabix. The default is 5000. |
pos2seq
requires tabix function from SAMtools. The path of tabix could be specified in
the optional argument of function if it is not in the PATH system environment.
More details: http://samtools.sourceforge.net/tabix.shtml.
A list includes header and VCF data. The results can also be outputted as a plain text file in VCF format.
Qiang Hu
1 2 3 4 5 6 7 | #vcffile <- system.file("extdata", "1151HZ0001.flt.vcf", package="VPA")
#vcfdata <- read.vcf(vcffile)
##extract calls from tabix indexed data
#Pos <- cbind(vcfdata$CHROM, vcfdata$POS)
#gzfile <- system.file("extdata", "1151HZ0006.vcf.gz", package="VPA")
#calls <- pos2seq(Pos, gzfile)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.