merging.trait: Generation of genomic traits

View source: R/merge.trait.R

merging.traitR Documentation

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
)

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

Value

Population-list with one or more additional new traits

Examples

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

MoBPS documentation built on Nov. 5, 2025, 6:26 p.m.

Related to merging.trait in MoBPS...