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

View source: R/RcppExports.R

rcpp_recombo_segregateR Documentation

rcpp version of function that does recombination and segregation

Description

Note that this is hard-wired for diploidy.

Usage

rcpp_recombo_segregate(G, dims, rf)

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 Jan. 26, 2024, 9:25 p.m.