Description Usage Arguments Value References Examples
View source: R/snp.param.pools.fun.R View source: R/parent.assign.fun.R
This function generates SNP parameters (specifically allelic proportion means and standard deviations) for pooled genotypes as described in Hamilton et al. (in prep).
1 | snp.param.pools.fun(snp.param.indiv, n.in.pools)
|
snp.param.indiv |
is the output of snp.param.indiv.fun. That is, it is a data frame with the following headings (class in parentheses):
|
n.in.pools |
is an integer representing the number of individuals in pools. |
1. A data frame containing estimates of SNP sepecific parameters for pooled genotypes (refer to Hamilton 2020). The number of columns in the data frame is dependent on the number of possible pooled genotypes which is determined from n.in.pools. The following is an example of output where n.in.pools = 2.
'SNP_ID' is the SNP identifier.
'MEAN_P_AAAA' is the mean of allelic proportion for homozygous A genotypes.
'SD_P_AAAA' is the standard deviation of allelic proportion for homozygous A genotypes.
'MEAN_P_AAAB' is the mean of allelic proportion for unordered AAAB genotypes.
'SD_P_AAAB' is the standard deviation of allelic proportion for unordered AAAB genotypes.
'MEAN_P_AABB' is the mean of allelic proportion for unordered AABB genotypes.
'SD_P_AABB' is the standard deviation of allelic proportion for unordered AABB genotypes.
'MEAN_P_ABBB' is the mean of allelic proportion for unordered ABBB genotypes.
'SD_P_ABBB' is the standard deviation of allelic proportion for unordered ABBB genotypes.
'MEAN_P_BBBB' is the mean of allelic proportion for homozygous B genotypes.
'SD_P_BBBB' is the standard deviation of allelic proportion for homozygous B genotypes.
'A_ALLELE' is the base represented by allele A (i.e. 'A', 'C', 'G' or 'T').
'B_ALLELE' is the base represented by allele B (i.e. 'A', 'C', 'G' or 'T').
Hamilton MG (2020) Maximum likelihood parentage assignment using quantitative genotypes
1 2 3 4 5 6 | #Retrieve data for small worked example from Hamilton 2020
data(Ham.snp.dat.indiv)
#Compute SNP parameters
Ham.snp.param.indiv <- snp.param.indiv.fun(Ham.snp.dat.indiv)
snp.param.pools.fun(Ham.snp.param.indiv, n.in.pools = 2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.