monotone_regression: Perform monotone regression on a genotype-phenotype (GP) map

Description Usage Arguments Details Value Author(s) References Examples

View source: R/monotone_regression.R

Description

The function uses partial_genotype_order and activeSet from the isotone package to do monotone regression (Leeuw et al., 2009) on a GP map.

Usage

1

Arguments

gpmap

An object of class gpmap

plusallele

An N vector of allele indexes (1 or 2)

Details

Element i in plusallele specifies the ordering of the genotypes at locus i, if the element is 1 then 11 < 12 < 22 and conversely if it is 2 then 22 < 12 < 11. monotone_regression calls partial_genotype_order to obtain the partial ordering of genotypic values for the given plusalleles. This partial ordering is then used together with the GP map itself as input to the activeSet function from the package isotone.

Value

monotone_regression returns the output from activeSet directly.

Author(s)

Arne B. Gjuvsland <arne.gjuvsland@nmbu.no> and Yunpeng Wang <yunpeng.wng@gmail.com>

References

Leeuw J, Hornik K and Mair P (2009) Isotone Optimization in R: Pool-Adjacent-Violators Algorithm (PAVA) and Active Set Methods. Journal of Statistical Software 32(5) [link]

Gjuvsland AB, Wang Y, Plahte E and Omholt SW (2013) Monotonicity is a key feature of genotype-phenotype maps. Front. Genet. 4:216. doi: 10.3389/fgene.2013.00216 [link]

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
data(GPmaps)

#Additive GP map is monotone 
monotone_regression(A,c(2,2))

#Pure AxA epistasis map
monotone_regression(AA,c(2,2))

#two-locus example in Cheverud & Routman (1995)
monotone_regression(mouseweight,c(1,1))

gpmap documentation built on Feb. 16, 2021, 1:06 a.m.