powered by
summarize the various variant types at both variant level and sample level.
vcfsummary( vcffile, region = "", samples = "-", pass = FALSE, qual = 0, svtype = FALSE )
vcfsummary a list containing the following components:
vcfsummary
: named integer vector; summarize the counts of each variant type
: character vector; the samples ids in the VCF file after subsetting
: integer vector; the counts of the variant type at sample level in the same order as samples
samples
path to the VCF/BCF file
region to subset like bcftools
samples to subset like bcftools
restrict to variants with FILTER==PASS
restrict to variants with QUAL > qual.
summarize the variants with SVTYPE
Zilong Li zilong.dk@gmail.com
bcftools view -s "id01,id02" input.bcf.gz chr1:100000-20000
library('vcfppR') svfile <- system.file("extdata", "sv.vcf.gz", package="vcfppR") res <- vcfsummary(svfile, region = "chr21:1-10000000", svtype = TRUE) str(res)
Run the code above in your browser using DataLab