Learn R Programming

dartR (version 1.1.11)

gl2snapp: Convert a genlight object to nexus format suitable for phylogenetic analysis by SNAPP (via BEAUti)

Description

The output nexus file contains the snp data and relevant PAUP command lines suitable for BEAUti.

Usage

gl2snapp(x, outfile = "snapp.nex", outpath = tempdir(), v = 2)

Arguments

x

-- 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 [default tempdir()]

v

-- verbosity: 0, silent or fatal errors; 1, begin and end; 2, progress log ; 3, progress and results summary; 5, full report [default 2]

Details

Reference: Bryant, D., Bouckaert, R., Felsenstein, J., Rosenberg, N.A. and RoyChoudhury, A. (2012). Inferring species trees directly from biallelic genetic markers: bypassing gene trees in a full coalescent analysis. Molecular Biology and Evolution 29:1917-1932.

Examples

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

Run the code above in your browser using DataLab