Description Usage Arguments Details Value
View source: R/test.segregation.R
Applies the chi-square test to check if markers are following the expected segregation pattern, i. e., 1:1:1:1 (A), 1:2:1 (B), 3:1 (C) and 1:1 (D) according to OneMap's notation. It does not use Yate's correction.
1 | test.segregation.of.a.marker(x, marker)
|
x |
an object of class |
marker |
the marker which will be tested for its segregation. |
First, the function selects the correct segregation pattern, then it defines the H0 hypothesis, and then tests it, together with percentage of missing data.
a list with the H0 hypothesis being tested, the chi-square statistics, the associated p-values, and the % of individuals genotyped.
It returns NA
if the numbers of expected and observed classes are
different or if dominant and co-dominant coding is mixed in the same marker.
data(example.out) # Loads a fake outcross dataset installed with onemap test.segregation.of.a.marker(example.out,1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.