Learn R Programming

MoBPS (version 1.13.1)

get.pool: Export founder pool

Description

Function to export founder pool

Usage

get.pool(
  population,
  gen = NULL,
  database = NULL,
  cohorts = NULL,
  id = NULL,
  plot = FALSE,
  import.position.calculation = NULL,
  decodeOriginsU = decodeOriginsR,
  use.id = TRUE
)

Value

Founder pool of in gen/database/cohorts selected individuals

Arguments

population

Population list

gen

Quick-insert for database (vector of all generations to export)

database

Groups of individuals to consider for the export

cohorts

Quick-insert for database (vector of names of cohorts to export)

id

Individual IDs to search/collect in the database

plot

Set TRUE to generate a visualization of genetic origins

import.position.calculation

Function to calculate recombination point into adjacent/following SNP

decodeOriginsU

Used function for the decoding of genetic origins [[5]]/[[6]]

use.id

Set to TRUE to use MoBPS ids instead of Sex_Nr_Gen based names (default: TRUE)

Examples

Run this code
data(ex_pop)
get.pool(ex_pop, gen=2)

Run the code above in your browser using DataLab