getASelfing: Extends the pedigree according to number of selfing cycles...

View source: R/getASelfing.R

getASelfingR Documentation

Extends the pedigree according to number of selfing cycles and also optionally computes the Additive Relationship Matrix for that pedigree.

Description

Extends the pedigree according to number of selfing cycles and also optionally computes the Additive Relationship Matrix for that pedigree.

Usage

getASelfing(
  ID,
  Par1,
  Par2,
  nCycles,
  nCyclesDefault,
  sepChar = "-F",
  verbose = FALSE,
  fileNewPed = NULL,
  computeA = TRUE
)

Arguments

ID

is a vector of individual IDs

Par1

vector of IDs of one of the parents

Par2

vector of IDs of the other parent

nCycles

vector that indicates number of selfing cycles for each individual.

nCyclesDefault

default value of nCycles

sepChar

character, used for expanded pedigree IDs

verbose

logical, print progress

fileNewPed

Output csv file (comma separated value) with columns 'label', 'sire', 'dam', with the full pull pedigree expanded taking into account the selfing cycles

computeA

Indicates if the A matrix is to be computed

Value

Returns A matrix computed for the extended pedigree if computeA=TRUE


Rpedigree/pedigreeR documentation built on Oct. 13, 2023, 7:35 p.m.