RealProAlleleShare: Calculate the Real Probability of 0,1 and 2 Shared Alleles###
Description
Calculate the Real Probability of 0,1 and 2 Shared Alleles###
Usage
RealProAlleleShare(AS)
Arguments
AS
a matrix/double of no. of Shared alleles, made up with 0,1 and 2; Outcome of "AlleleShare_Table". Each column denotes each locus. Each row denotes each individual.
Value
a matrix/double of real density of 0,1 and 2 shared alleles for each locus. Each row denotes each locus. The first column denotes the probability of 0 shared alleles, the second denotes 1 shared allele, the third denotes 2 shared alleles.
Details
This function Calculates the density of 0,1 and 2 Shared Alleles for a set of loci. Usually followed by write.csv(as.data.frame(y),file = "~/*.csv") to export the result of a n x3 matrix.