QTLsim: Simulate QTL + residual effects

Description Usage Arguments Value Author(s) Examples

View source: R/QTLsim.R

Description

Simulates phenotypic data on top of the pedigreeSimR output and save then as diaQTL csv format

Usage

1
2
3
4
5
6
7
8
QTLsim(
  parents = 3,
  ploidy = 4,
  workingfolder = "PedigreeSimR_files",
  QTLmarker = NULL,
  QTLh2 = 0.3,
  run_diaQTL = FALSE
)

Arguments

parents

number of parents in the pedigree

ploidy

integer even number

workingfolder

string with folder name to load the input and write output files

QTLmarker

name of marker to be used as QTL, if NULL a marker is sampled randomly (default)

QTLh2

numeric between 0 and 1 with the QTL heritability

run_diaQTL

logical, if TRUE runs diaQTL scan1 and fitQTL functions in the data.

Value

if run_diaQTL=TRUE, return a list with diaQTL results. Otherwise, returns NULL.

Author(s)

Rodrigo R Amadeu, rramadeu@gmail.com

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Not run: 
map = 1:100
haplotypes = fake_haplo(m=50,n=100,seed=1234)
pedigree = diallel_pedigree(parents=3,popsize=100)
pedigreesimR(map,haplotypes,pedigree,workingfolder="PedigreeSimR_files")
QTLsim(parents=3,
       ploidy=4,
       workingfolder="PedigreeSimR_files",
       QTLmarker=NULL,
       QTLh2=0,
       run_diaQTL=FALSE)

## End(Not run)

rramadeu/diaQTLSimulations documentation built on Feb. 11, 2022, 1:34 a.m.