make_parents: Simulate haploid parental genotypes along a chromosome

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/simulate.R

Description

This function creates divergent genotypes between two parents. The first parent's genotypes are denoted by a vector of zeros of length L while the second parent's genotypes are a vector of ones.

Usage

1

Arguments

snps

a vector gving the locations of snps along a chromosome

Value

an object of class parent.genomes giving the parental ancestry at each snp.

Author(s)

Tyler D. Hether

References

none.

See Also

recombine_index, recobmine

Examples

1
make_parents(snps=c(1:10)*10)

tylerhether/HMMancestry documentation built on May 3, 2019, 1:53 p.m.