gl2gi function

Converts a genlight object to genind object