Haplotype_sim: Simulate a haplotype structure matrix

View source: R/Haplotype_sim.R

Haplotype_simR Documentation

Simulate a haplotype structure matrix

Description

Simulate a haplotype structure matrix through random sampling of binary argutments, where the rows correspond to the SNPs and the columns to the haplotypes.

Usage

Haplotype_sim(nsnp = 500, nhap = 5)

Arguments

nsnp

Integer, number of SNPs

nhap

Integer, number of haplotypes

Value

Returns a numeric matrix, with all entries being binary, where the rows correspond to the SNPs and the columns to the haplotypes.


xthchen/haplotest documentation built on Nov. 29, 2022, 12:07 p.m.