vcf2coanGT: 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
vcf2coanGT(vcf, out.name = "coancestry_gty.txt")

Arguments

vcf

A data.frame in vcf format

out.name

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

Value

co.gt A dataframe with all of the genotypes

Examples

1
2
3
vcf.file<-system.file("extdata", "example.vcf.txt",package = "gwscaR")
vcf<-parse.vcf(vcf.file)
co.gts<-vcf2coanGT(vcf,"coancestry_gty.txt")

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