Learn R Programming

MoBPS (version 1.13.1)

set.mean.pool: Set differences between founder pool

Description

Function to scale trait for genetic differences based on founder pools

Usage

set.mean.pool(
  population,
  pool = NULL,
  mean = NULL,
  trait = NULL,
  gen = NULL,
  database = NULL,
  cohorts = NULL,
  reference = "pool",
  max.effects = Inf
)

Value

Class of in gen/database/cohorts selected individuals

Arguments

population

Population list

pool

Vector with pools considered (default: 1:length(mean))

mean

Vector with the target mean for the different pools

trait

Which trait to set the new mean for

gen

Quick-insert for database (vector of all generations to export) (THIS CAN ONLY BE APPLIED ON FOUNDERS, if empty -> default: 1)

database

Groups of individuals to consider for the export (THIS CAN ONLY BE APPLIED ON FOUNDERS)

cohorts

Quick-insert for database (vector of names of cohorts to export) (THIS CAN ONLY BE APPLIED ON FOUNDERS)

reference

Target mean is compared again the reference (default: "pool" - average genomic value in the respective pool, alt: "all")

max.effects

Maximum number of locations in the genome that will be assigned an effect for pool-based correction

Examples

Run this code
population = creating.diploid(nsnp = 100, nindi = 10, n.additive = 100, founder.pool = 1)
population = creating.diploid(population=population, nindi = 10,
  founder.pool = 2)
population = set.mean.pool(population, mean = c(100,110))

Run the code above in your browser using DataLab