snp.param.pools.fun: snp.param.pools.fun

Description Usage Arguments Value References Examples

View source: R/snp.param.pools.fun.R View source: R/parent.assign.fun.R

Description

This function generates SNP parameters (specifically allelic proportion means and standard deviations) for pooled genotypes as described in Hamilton et al. (in prep).

Usage

1
snp.param.pools.fun(snp.param.indiv, n.in.pools)

Arguments

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):

  • 'SNP_ID' is the SNP identifier (character).

  • 'N_AA' is the count of homozygous A (AA) genotypes (integer).

  • 'MEAN_P_AA' is the mean of allelic proportion for homozygous A genotypes (numeric).

  • 'SD_P_AA' is the standard deviation of allelic proportion for homozygous A genotypes (numeric).

  • 'N_AB' is the count of heterozygous (AB) genotypes (integer).

  • 'MEAN_P_AB' is the mean of allelic proportion for heterozygous (AB) genotypes (numeric).

  • 'SD_P_AB' is the standard deviation of allelic proportion for heterozygous (AB) genotypes (numeric).

  • 'N_BB' is the count of homozygous B (BB) genotypes (integer).

  • 'MEAN_P_BB' is the mean of allelic proportion for homozygous B genotypes (numeric).

  • 'SD_P_BB' is the standard deviation of allelic proportion for homozygous B genotypes (numeric).

  • 'WELCH_A' is the welsh statistic for the interval between MEAN_P_AA and MEAN_P_AB (numeric).

  • 'WELCH_B' is the welsh statistic for the interval between MEAN_P_AB and MEAN_P_BB (numeric).

  • 'A_ALLELE_FREQ' is the A allele frequency computed from genotype counts (numeric).

  • 'B_ALLELE_FREQ' is the B allele frequency computed from genotype counts (numeric).

  • 'A_ALLELE' is the base represented by allele A (i.e. 'A', 'C', 'G' or 'T') (character).

  • 'B_ALLELE' is the base represented by allele B (i.e. 'A', 'C', 'G' or 'T') (character).

n.in.pools

is an integer representing the number of individuals in pools.

Value

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.

References

Hamilton MG (2020) Maximum likelihood parentage assignment using quantitative genotypes

Examples

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)

mghamilton/SNPpools documentation built on Feb. 13, 2021, 12:52 a.m.