Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

gl.define.pop

Define a new population in a genlight {adegenet} object on the basis of specified individuals


Description

The script reassigns existing individuals to a new population and removes their existing population assignment

Usage

gl.define.pop(x, ind.list, new, verbose = NULL)

Arguments

x

– name of the genlight object containing SNP genotypes [required]

ind.list

– a list of individuals to be assigned to the new population [required]

new

– name of the new population

verbose

– verbosity: 0, silent or fatal errors; 1, begin and end; 2, progress log ; 3, progress and results summary; 5, full report [default 2 or as specified using gl.set.verbosity]

Details

The script returns a genlight object with the new population assignment.

Value

A genlight object with the redefined population structure

Author(s)

Arthur Georges (Post to https://groups.google.com/d/forum/dartr)

Examples

gl <- gl.define.pop(testset.gl, ind.list=c("AA019073","AA004859"), new="newguys")

dartR

Importing and Analysing SNP and Silicodart Data Generated by Genome-Wide Restriction Fragment Analysis

v1.9.6
GPL-2
Authors
Bernd Gruber [aut, cre], Arthur Georges [aut], Jose L. Mijangos [aut], Peter J. Unmack [ctb], Oliver Berry [ctb], Lindsay V. Clark [ctb], Floriaan Devloo-Delva [ctb]
Initial release
2021-04-29

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.