getASelfing {pedigreeTools} | R 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
[Package pedigreeTools version 0.2 Index]