Learn R Programming

MoBPS (version 1.13.1)

get.snapshot.single: Derive snapshot of selected individuals

Description

Function to derive snapshot of genotyping/phenotyping state of selected individuals

Usage

get.snapshot.single(
  population,
  database = NULL,
  gen = NULL,
  cohorts = NULL,
  id = NULL,
  phenotype.data = FALSE,
  gain.data = FALSE,
  digits = 3,
  time.diff = 1,
  min.time = -Inf,
  max.time = Inf,
  use.all.copy = TRUE,
  verbose = TRUE,
  time.points = NULL,
  include.culled = FALSE
)

Value

Snapshot Matrix

Arguments

population

Population list

database

Groups of individuals to consider for the export

gen

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

cohorts

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

id

Individual IDs to search/collect in the database

phenotype.data

Set to TRUE to include information of number of phenotypes generated

gain.data

Set to TRUE to add information on changes in genetic level between cohorts (default: FALSE)

digits

Number of digits provided for the gain.data output (default: 3)

time.diff

Set to a target time interval to receive information between transitions to other cohorts (default: NA)

min.time

Earliest time point relevant for output results (default: -Inf)

max.time

Latest time point relevant for output results (default: Inf)

use.all.copy

Set to TRUE to extract phenotyping

verbose

Set to FALSE to not display any prints (default: TRUE)

time.points

Use this parameter to manual provide a vector of time points on results should be generated for (default: NULL)

include.culled

Set to TRUE to also include culled individuals in the statistics provided

Examples

Run this code
data(ex_pop)
get.snapshot.single(ex_pop, cohorts = "Cohort_2_M")

Run the code above in your browser using DataLab