gl.write.csv: Write out data from a gl object adegenet to csv file
Description
This script writes to file the SNP genotypes with specimens as entities (columns) and
loci as attributes (rows). Each row has associated locus metadata. Each column, with header
of specimen id, has population in the first row.
-- name of the genlight object containing SNP genotypes [required]
outfile
-- name of the csv file to write the data to [required]
outpath
-- path where to save the output file (set to tempdir by default)
Value
saves a glenlight object to csv
Details
The data coding differs from the DArT 1 row format in that 0 = reference homozygous, 2 =
alternate homozygous, 1 = heterozyous, and NA = missing SNP assignment.