segregationRatios {polySegratio} | R Documentation |
Compute observed segregation proportions for dominant markers in autopolyploids
Description
Computes segregation ratios for a matrix of markers where the rows are markers and the columns are individuals and the markers are recorded as 0's and 1's
Usage
segregationRatios(x, drop.cols = NULL)
Arguments
x |
|
drop.cols |
|
Value
Returns an object of class segRatio
containing
r |
no. of 1's for each individual |
n |
total no. of markers present for each individual |
seg.ratio |
segregation proportion for each individual |
n.individuals |
total number of individuals |
Author(s)
Peter Baker p.baker1@uq.edu.au
See Also
testSegRatio
: chi squared and
tests and Binomial
confidence intervals for assigning marker dosage,
expected.segRatio
: compute expected segregation
proportions for various dosages
for dominant markers in regular autopolyploids
Examples
## simulate small autotetraplid data set
a1 <- sim.autoMarkers(4,c(0.8,0.2),n.markers=20,n.individuals=10)
print(a1)
print(segregationRatios(a1$markers))