sim_mpp_single_locus: Simulate multiparental population (MPP) data from a specified...

View source: R/sim_mediation.R

sim_mpp_single_locusR Documentation

Simulate multiparental population (MPP) data from a specified locus design matrix

Description

This function takes a locus design matrix, e.g., founder haplotypes dosages from CC mice, to simulate outcomes driven by its QTL.

Usage

sim_mpp_single_locus(
  locus_matrix,
  num_replicates,
  num_sim,
  qtl_effect_size = 0.1,
  strain_effect_size = 0,
  M_ID = NULL,
  sample_method = c("uniform", "crp"),
  num_alleles = 8,
  num_founders = 8,
  beta = NULL,
  impute = TRUE,
  sim_label = "sim_m",
  return_means = TRUE
)

Arguments

locus_matrix

A design matrix of founder haplotypes at QTL for MPP founder strains. The number of rows should correspond to the number of strains. The number of columns is eight for the CC/DO.

num_replicates

DEFAULT: 1. The number of strain replicates to use.

num_sim

DEFAULT: 1. The number of simulated outcomes to produce.

qtl_effect_size

DEFAULT = 0.1. The proportion of variation in the simulated outcomes explained by the QTL.

Examples

sim_cc_single_locus()

wesleycrouse/bmediatR documentation built on April 28, 2023, 4:01 p.m.