summary_vcf {vanquish} | R Documentation |
Summarizes allele frequency information in scatter and density plots
summary_vcf(vcf, ZG = NULL, CHR = NULL)
vcf |
VCF object from read_vcf function |
ZG |
zygosity: (1) null, for both het and hom, default; (2) het; (3) hom |
CHR |
chromosome number: (1) null, all chromosome, default; (2) any specific number |
A list containing (1) scatter: allele frequency scatter plot; (2) density: allele frequency density plot
data("vcf_example")
tmp <- summary_vcf(vcf = vcf_example, ZG = 'het', CHR = c(1,2))
plot(tmp$scatter)
plot(tmp$density)