Learn R Programming

MoBPS (version 1.13.1)

derive.loop.elements: Derive loop elements

Description

Internal function to derive the position of all individuals to consider for BVE/GWAS

Usage

derive.loop.elements(
  population,
  bve.database,
  bve.class,
  bve.avoid.duplicates,
  store.adding = FALSE,
  store.which.adding = FALSE,
  list.of.copys = FALSE
)

Value

Matrix of individuals in the entered database

Arguments

population

Population list

bve.database

Groups of individuals to consider in breeding value estimation

bve.class

Consider only animals of those class classes in breeding value estimation (default: NULL - use all)

bve.avoid.duplicates

If set to FALSE multiple generatations of the same individual can be used in the bve (only possible by using copy.individual to generate individuals)

store.adding

Internal parameter to derive number of added individuals per database entry (only relevant internally for GWAS)

store.which.adding

Internal parameter to derive which individuals are copy entries

list.of.copys

Internal parameter to derive further information on the copies individuals

Examples

Run this code
data(ex_pop)
derive.loop.elements(ex_pop, bve.database=get.database(ex_pop, gen=2),
bve.class=NULL, bve.avoid.duplicates=TRUE)

Run the code above in your browser using DataLab