get.gamete.names: get the name of all gamete present in the population

Description Usage Arguments Details Examples

Description

This function returns a name for all gamete present in the population This is useful mainly for plotting result but also to know in which order the gamete are store in genome.

Usage

1

Arguments

genome

A S4 object of type genome

Details

Notice that if allele.name is specified, the name will contain this name and is therefore much easier to read that if it's not present, where the name of the allele is just their number.

Examples

1
2
3
4
locus1 = create.locus(allele1=c(1,1),allele2 = c(1,2),sd = c(0,1),allele.name = c("x","y"))
locus2 = create.locus(allele1=  c(1,1,2),allele2 = c(1,2,2),fitness.female = c(1,0.9,0.8),fitness.male = c(0.6,0.8,1),allele.name = c("F","M"))
genome = create.genome(locus=list(locus1,locus2))
get.gamete.names(genome)

frederic-michaud/hapex documentation built on May 15, 2019, 3:29 p.m.