summarize the various variant types at both variant level and sample level.
Source:R/vcf-summary.R
vcfsummary.Rd
summarize the various variant types at both variant level and sample level.
Value
vcfsummary
a list containing the following components:
- summary
: named integer vector;
summarize the counts of each variant type- samples
: character vector;
the samples ids in the VCF file after subsetting- vartype
: integer vector;
the counts of the variant type at sample level in the same order assamples
Author
Zilong Li zilong.dk@gmail.com
Examples
library('vcfppR')
svfile <- system.file("extdata", "sv.vcf.gz", package="vcfppR")
res <- vcfsummary(svfile, region = "chr21:1-10000000", svtype = TRUE)
str(res)