summary_vcf: VCF Data Summary

Description Usage Arguments Value Examples

View source: R/summary_vcf.R

Description

Summarizes allele frequency information in scatter and density plots

Usage

1
summary_vcf(vcf, ZG = NULL, CHR = NULL)

Arguments

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

Value

A list containing (1) scatter: allele frequency scatter plot; (2) density: allele frequency density plot

Examples

1
2
3
4
data("vcf_example")
tmp <- summary_vcf(vcf = vcf_example, ZG = 'het', CHR = c(1,2))
plot(tmp$scatter)
plot(tmp$density)

Example output



vanquish documentation built on May 2, 2019, 9:42 a.m.