Learn R Programming

dartR (version 1.1.11)

gl2gds: Convert a genlight object to nexus format PAUP SVDquartets

Description

Package SNPRelate relies on a bit-level representation of a SNP dataset that competes with {adegenet} genlight objects and associated files. This function saves a genlight object to a gds format file.

Usage

gl2gds(gl, outfile = "gl2gds.gds", outpath = tempdir())

Arguments

gl

-- name of the genlight object containing the SNP data [required]

outfile

-- file name of the output file (including extension).

outpath

-- path where to save the output file (set to tempdir by default)

Examples

Run this code
# NOT RUN {
gl2gds(testset.gl)
# }

Run the code above in your browser using DataLab