Learn R Programming

MoBPS (version 1.13.1)

merging.trait: Generation of genomic traits

Description

Generation of the trait in a starting population

Usage

merging.trait(
  population,
  merge = NULL,
  trait.name = NULL,
  bv.standard = FALSE,
  mean.target = NULL,
  var.target = NULL,
  verbose = TRUE,
  set.zero = FALSE,
  new.phenotype.correlation = NULL,
  new.residual.correlation = NULL
)

Value

Population-list with one or more additional new traits

Arguments

population

Population list

merge

Vector containing the traits to merge (e.g. c(2,3))

trait.name

Name of the trait generated

bv.standard

Set TRUE to standardize trait mean and variance via bv.standardization()

mean.target

Target mean

var.target

Target variance

verbose

Set to FALSE to not display any prints

set.zero

Set to TRUE to have no effect on the 0 genotype (or 00 for QTLs with 2 underlying SNPs)

new.phenotype.correlation

(OLD! - use new.residual.correlation) Correlation of the simulated enviromental variance

new.residual.correlation

Correlation of the simulated enviromental variance

Examples

Run this code
population <- creating.diploid(nsnp=1000, nindi=100)
population <- creating.trait(population, n.additive=c(100,100))
population <- merging.trait(population, merge = c(1,2))

Run the code above in your browser using DataLab