Learn R Programming

dartR (version 1.9.9.1)

gi2gl: Converts a genind object to genlight object

Description

Converts a genind object to genlight object

Usage

gi2gl(gi, parallel = FALSE, verbose = NULL)

Arguments

gi

-- a genind object

parallel

-- switch to deactivate parallel version. Default set to FALSE. Might not be worth to run it parallel most of the times.

verbose

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

Value

A genlight object, with all slots filled.

Details

Be aware due to ambiguity which one is the reference allele a combination of gi2gl(gl2gi(gl)) does not return an identical object (but in terms of analysis this conversions are equivalent)