ParentOffspring: Conduct the Parent-Offspring Test Using Monomorphic SNP...

Description Usage Arguments Details Value Author(s) References Examples

Description

Compute the similarity to the parents for each offspring, and produce a plot of similarity for all offspring. One can keep the offspring above some threshold for the similarity for further studies.

Usage

1

Arguments

genoMat

matrix or data frame with n rows and m columns where the rows are for the SNP markers, and the first two columns are for the parents and the remaining columns are for the offspring. Each value is a string of length 2. For example, the following matrix
"GG" "GG" "GG" "CG" "CG" "GG"
"AA" "AA" "AA" " - - " "AA" "AA"
"AA" "AA" "GG" "AA" "AA" "AA"
"GG" "AA" "GG" "GG" "GG" "GG"
Note the procedure will use only the rows with the monomorphic parents to compute the similarity, i.e., some rows such as the last one here will be ignored.

plot

logical value for plotting the similarity graph. The default value is TRUE.

Details

The procedure computes the similarity of each offspring to its parents utilizing the monomorphic markers between two parents. At each SNP marker locus for each offspring, allele calls are scored into 0, 1 or 2 based on the number of identical alleles from both parents. Then the similarity between this offspring and the parents is defined to be

S=(2a+b)/(2c)

where a is the number of 2s, and b is number of 1s and c is the total number of 0s, 1s and 2s for all monomorphic markers between the parents. Missing values are allowed and denoted by " - - " in the input matrix genoMat, but will not be used to compute similarity.

Value

similarity

vector of similarity for each offspring

Author(s)

Pengsheng Ji <psji@uga.edu>, Hussein Abdel-Haleem, H. Roger Boerma and Zenglu Li

References

Abdel-Haleem, H., Ji, P., Boerma, H. R. and Li, Z. (2013).R Software Program for Conducting Parent-Offspring Test using SNP Markers. To appear in Plant Genome.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
# a very simple example

genotypeMatrix = matrix( 
    c("GG",  "GG",   "GG",  "CG",  "CG",  "GG",
      "AA",  "AA",   "AA",  "--",  "AA",  "AA", 
      "AA",  "AA",   "GG",  "AA",  "AA",  "AA", 
      "GG",  "AA",   "GG",  "GG",	 "GG",  "GG"),  
    byrow=TRUE, 
    nrow=4, 
    ncol=6) 
# Compute and plot the parent-offspring similarity for each offspring
ParentOffspring(genotypeMatrix)

ParentOffspring documentation built on May 2, 2019, 8:15 a.m.