R/reorderPedigree.R

Defines functions reorderPedigree

reorderPedigree <- function(mother, father, lineNames, warnImproperFunnels, selfing)
{
	success <- FALSE
	try(
	{
		result <- .Call("reorderPedigree", mother, father, lineNames, PACKAGE="mpMap2")
		success <- TRUE
	}, silent=TRUE)
	#There will be an error if package was compiled without boost support
	if(success)
	{
		return(new("pedigree", lineNames = result$lineNames, mother = result$mother, father = result$father, selfing = selfing, warnImproperFunnels = warnImproperFunnels))
	}
	else
	{
		return(NULL)
	}
}

Try the mpMap2 package in your browser

Any scripts or data that you put into this service are public.

mpMap2 documentation built on Sept. 13, 2020, 5:17 p.m.