simulTrait3: Simul breeding game

View source: R/breeding_game.R

simulTrait3R Documentation

Simul breeding game

Description

Simulate phenotypes of trait 3.

Usage

simulTrait3(
  dat,
  X,
  afs = NULL,
  subset.snps = NULL,
  qtn.id = NULL,
  resist.genos = NULL,
  prob.resist.no.qtl = 0.02,
  verbose = 1
)

Arguments

dat

data.frame specifying the structure of the initial data set of phenotypes

X

matrix of bi-allelic SNP genotypes encoded in allele dose in 0,1,2

afs

vector of allele frequencies (ignored if qtn.id is not NULL)

subset.snps

vector of SNP identifiers to which the QTN should belong (ignored if qtn.id is not NULL)

qtn.id

identifier of the causal SNP (QTN)

resist.genos

vector of genotypes in allele dose at the causal SNP providing the resistance (ignored if qtn.id is NULL)

prob.resist.no.qtl

probability for a genotype without the QTL to be resistant a year with the pathogen

verbose

verbosity level (0/1)

Value

list

Author(s)

Timothee Flutre

See Also

makeDfInitPhenos


timflutre/rutilstimflutre documentation built on Feb. 7, 2024, 8:17 a.m.