sim_find_num_crossovers: This function finds the number of crossovers for each gamete

View source: R/sim_find_num_crossovers.R

sim_find_num_crossoversR Documentation

This function finds the number of crossovers for each gamete

Description

This function uses a poisson distribution with mean equal to recomb_lambda to randomly generate the number of crossovers for each gamete for num_gametes gametes

Usage

sim_find_num_crossovers(num_gametes, recomb_lambda)

Arguments

num_gametes

an integer, the number of gametes for which to generate a number of crossovers

recomb_lambda

a numeric, the average recombination rate, used as the mean for the poisson distribution

Value

num_recomb_sites a vector of length num_gametes containing integers for the number of crossovers for each gamete


mccoy-lab/rhapsodi documentation built on July 27, 2022, 3:56 a.m.