sim_mpp_data: Simulate multiparental population (MPP) data from realized...

View source: R/sim_mediation.R

sim_mpp_dataR Documentation

Simulate multiparental population (MPP) data from realized genomes

Description

This function takes qtl2 formatted genoprobs from an MPP population (e.g., CC or DO) and simulates outcomes driven by QTL.

Usage

sim_mpp_data(
  genoprobs,
  map,
  qtl_effect_size = 0.1,
  strain_effect_size = 0,
  locus = NULL,
  vary_locus = TRUE,
  num_replicates = 1,
  num_sim = 1,
  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

genoprobs

A qtl2 formatted genoprobs object from qtl2.

map

A qtl2 formatted map object that corresponds to the genoprobs.

qtl_effect_size

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

num_replicates

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

num_sim

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

Examples

sim_mpp_data()

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