summary_vcf {sssc}R Documentation

VCF Data Summary

Description

Summarizes allele frequency information in scatter and density plots

Usage

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

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

[Package sssc version 1.0.0 Index]