mutation: Mutation function

View source: R/glads_funcs.R

mutationR Documentation

Mutation function

Description

This function introduces mutations on biallelic genetic structures.

Usage

mutation(G, mutation.rate)

Arguments

G

An object of class "struct" with the genetic structure of individuals before gametogenesis.

mutation.rate

Mutation rate of biallelic loci

Details

This function is used internally in the function newborns() in order to introduce mutations on biallelic genetic structures before meiosis. The genotypes are introduced as an array of integers defining the copy of a given allele at a given locus. Rows represent individuals and columns the different loci.

Value

An object of class "struct" or an array.

See Also

evolve newborns


eriqande/gids documentation built on Jan. 5, 2024, 12:31 a.m.