
Last chance! 50% off unlimited learning
Sale ends in
Function for creating a gpmap
object representing a genotype-phenotype (GP) map
for
generate_gpmap(y, locinames = NULL, allelenames = NULL, mapnames = NULL)
A
An optional character vector with
An optional character object specifying allele names
An optional character vector with
The function returns an object of class gpmap
containing the following components
The vector or matrix of genotypic values
The number of loci in the map
Data frame with enumeration of genotypes
Character vector with names for all loci
The name(s) of the GP map
Arguments locinames
and allelenames
are passed on to enumerate_genotypes
, and the genotypic values in y
should be given
in the same sequence as the sequence of genotypes returned by enumerate_genotypes
. If mapnames
is not specified then the GP maps
will be named "GPmap_1", "GPmap_2",..,"GPmap_K".
Gjuvsland AB, Vik JO, Woolliams JA, Omholt SW (2011) Order-preserving principles underlying genotype-phenotype maps ensure high additive proportions of genetic variance. Journal of Evolutionary Biology 24(10):2269-2279 [link]
# NOT RUN {
#inter- and intra-locus additive GPmap with two loci
generate_gpmap(c(-2,1,0,-1,0,1,0,1,2),mapnames="Additive")
#two-locus GP map with AxA epistasis for loci named A and B
generate_gpmap(c(-1,0,1,0,0,0,1,0,-1),locinames=c("A","B"),mapnames="AxA")
#random GP map with 3 loci
set.seed(0)
generate_gpmap(rnorm(27))
# }
Run the code above in your browser using DataLab