vcf2coanAF: Convert a vcf df to a coancestry input file

Description Usage Arguments Value Examples

View source: R/gwscaR_utility.R

Description

Convert a vcf df to a coancestry input file

Usage

1
vcf2coanAF(vcf, out.name = "coancestry_afs.txt")

Arguments

vcf

A data.frame in vcf format

out.name

A name for a an output file (default is coancestry_afs.txt)

Value

co.afs A dataframe with all of the allele frequencies

Examples

1
2
3
vcf.file<-system.file("extdata", "example.vcf.txt",package = "gwscaR")
vcf<-parse.vcf(vcf.file)
co.afs<-vcf2coanAF(vcf,"coancestry_afs.txt")

spflanagan/gwscaR documentation built on Nov. 14, 2019, 9:16 p.m.