numeric_2_VCF: Convert numeric genotypes into BEAGLE compatible VCF format

Description Usage Arguments Value

View source: R/FUNCTION_numeric_2_VCF.R

Description

Convert numeric genotypes into BEAGLE compatible VCF format

Usage

1
numeric_2_VCF(genotypes, marker_map)

Arguments

genotypes

A numeric matrix or dataframe coded as c(0,1,2). Columns = markers, rows = samples/taxa

marker_map

A dataframe with the same order as the genotypes. Column names = c("rs", chr", "position")

Value

A dataframe in VCF format with marker metadata in the first 9 columns followed by genotype calls


mtmcgowan/CropSci545 documentation built on Feb. 27, 2020, 12:43 a.m.