R/rilPedigree.R

Defines functions rilPedigree

Documented in rilPedigree

#' @title Generate a two-parent RIL pedigree which starts from inbred founders
#' 
#' @description 
#' Generate a two-parent RIL pedigree which starts from inbred founders
#'
#' @param populationSize The size of the generated population
#' @param selfingGenerations Number of generations of selfing. Specifying one generation leads to an F2 design. 
#' @return An object of class \code{detailedPedigree} representing the experimental design, suitable for simulation using simulateMPCross. 
#' @export
rilPedigree <- function(populationSize, selfingGenerations)
{
	return(twoParentPedigree(initialPopulationSize = populationSize, selfingGenerations = selfingGenerations, intercrossingGenerations = 0, nSeeds = 1))
}
rohan-shah/mpMap2 documentation built on July 21, 2020, 8:58 p.m.