vcfsummary | R Documentation |
summarize the various variant types at both variant level and sample level.
vcfsummary(
vcffile,
region = "",
samples = "-",
pass = FALSE,
qual = 0,
svtype = FALSE
)
vcffile |
path to the VCF/BCF file |
region |
region to subset like bcftools |
samples |
samples to subset like bcftools |
pass |
restrict to variants with FILTER==PASS |
qual |
restrict to variants with QUAL > qual. |
svtype |
summarize the variants with SVTYPE |
bcftools view -s "id01,id02" input.bcf.gz chr1:100000-20000
vcfsummary
a list containing the following components:
: 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
Zilong Li zilong.dk@gmail.com
library('vcfppR')
svfile <- system.file("extdata", "sv.vcf.gz", package="vcfppR")
res <- vcfsummary(svfile, region = "chr21:1-10000000", svtype = TRUE)
str(res)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.