familysim: Simulate related individuals

Description Usage Arguments Value Author(s) See Also Examples

View source: R/related.R

Description

Uses observed allele frequencies to generated a user-defined number of pairs of individuals of known relatedness.

Usage

1
familysim(freqs, ninds = 100L)

Arguments

freqs

An object containing allele frequency data. Can be generated with the readgenotypedata function.

ninds

The number of pairs of individuals to simulate for each relatedness values. For example, entering 100 would generate 100 parent-offspring pairs, 100 full-sib pairs, 100 half-sib pairs, and 100 unrelated pairs.

Value

A data frame containing the genotypes of simulated individuals.

Author(s)

Tim Frasier <timothy.frasier@smu.ca>

See Also

readgenotypedata

Examples

1
2
3
4
5
6
7
8
9
	## Not run: 
		#---Load data set---#
		data(GenotypeData)
		input <- readgenotypedata(GenotypeData)

		#---Generate simulated individuals---#
		sim <- familysim(input$freqs, 100)
	
## End(Not run)	

related documentation built on May 2, 2019, 6:49 p.m.