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

gl.merge.pop

Merge two or more populations in a genelight {adegenet} object into one population


Description

Individuals are assigned to populations based on the specimen metadata data file (csv) used with gl.read.dart().

Usage

gl.merge.pop(x, old = NULL, new = NULL, verbose = NULL)

Arguments

x

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

old

– a list of populations to be merged [required]

new

– name of the new population [required]

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

This script assigns individuals from two nominated populations into a new single population. It can also be used to rename populations.

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

Value

A genlight object with the new population assignments

Author(s)

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

Examples

gl <- gl.merge.pop(testset.gl, old=c("EmsubRopeMata","EmvicVictJasp"), new="Outgroup")

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.