rcpp_recombo_segregate: rcpp version of function that does recombination and...

Description Usage Arguments Value

View source: R/RcppExports.R

Description

Note that this is hard-wired for diploidy.

Usage

1

Arguments

G

the structure giving the genotypes of the indviduals. Actually a 3-D array indexed by indiv, locus, gene copy

dims

the dimensions of the 3-D array G for internal use.

rf

vector of recombination fractions. There should be one minus the number of loci. The first one corresponds to recombination between the first and the second marker. These are the probabilities of a recombination between the markers during a meiosis.

Value

The return value is a long vector that can be squished into a matrix as appropriate to put it into the genotype struct.


eriqande/glads documentation built on April 24, 2020, 11:53 a.m.