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

utils.pa.ind

Report number of private alleles possessed by an individual of unknown provenance


Description

This script calculates the number of private alleles possessed by a focal individual of unknown provenance when compared to a series of target populations.

Usage

utils.pa.ind(x, unknown, nmin = 10, threshold = 0, verbose = NULL)

Arguments

x

– name of the input genlight object [required]

unknown

– identity label of the focal individual whose provenance is unknown [required]

nmin

– minimum sample size for a target population to be included in the analysis [default 10]

threshold

– retain those populations for which the focal individual has private alleles less or equal in number than the threshold [default 0]

verbose

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

Details

A private allele is an allele possessed by the focal individual, but absent from the target population. It differs from a fixed allelic difference in that the focal individual may be heterozygous, in which case can share one but not both of its alleles with the target population.

Value

returns a genlight object containing the focal individual (assigned to population "unknown") and populations for which the focal individual is not distinctive (number of loci with private alleles less than or equal to 'thresold').

Author(s)

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

Examples

# Test run with a focal individual from the Macleay River (EmmacMaclGeor)
#dartR:::utils.pa.ind(testset.gl, unknown="UC_00146", nmin=10, threshold=1, verbose=2)

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.