popgen.sim: Simulate genetic data for populations with different allele...

Description Usage Arguments Value

View source: R/gwscaR_sim.R

Description

Simulate genetic data for populations with different allele frequencies

Usage

1
2
3
popgen.sim(npops = 8, inds = 10, nloc = 10000, p = rep(0.01, 8),
  outname = "simulated.ped", analyze = TRUE, ns = c(12, 24, 36, 48,
  96))

Arguments

npops

The number of populations to simulate

inds

The number of individuals per population to simulate

nloc

The number of loci to simulate

p

A vector of average minor allele frequencies per locus to simulate

outname

The output name for the file

analyze

A logical value for whether or not to run the analysis (defaults to TRUE)

ns

A vector of numbers of individuals to simulate

Value

A data.frame with ped data


spflanagan/gwscaR documentation built on Nov. 14, 2019, 9:16 p.m.