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

is.fixed

Test to see if two populations are fixed at a given locus


Description

This script compares two percent allele frequencies and reports TRUE if they represent a fixed difference, FALSE otherwise.

Usage

is.fixed(s1, s2, tloc = 0)

Arguments

s1

– percentage SNP allele or sequence tag frequency for the first population [required]

s2

– percentage SNP allele or sequence tag frequency for the second population [required]

tloc

– threshold value for tolerance in when a difference is regarded as fixed [default 0]

Details

A fixed difference at a locus occurs when two populations share no alleles, noting that SNPs are biallelic (ploidy=2). Tollerance in the definition of a fixed difference is provided by the t parameter. For example, t=0.05 means that SNP allele frequencies of 95,5 and 5,95 percent will be reported as fixed (TRUE).

Value

TRUE (fixed difference) or FALSE (alleles shared) or NA (one or both s1 or s2 missing)

Author(s)

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

See Also

Examples

is.fixed(s1=100, s2=0, tloc=0)
is.fixed(96, 4, tloc=0.05)

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.