- Pairs
dataframe with columns ID1
and ID2
, and
optionally
- Sex1
Sex of ID1, 1=female, 2=male, 3=unknown, or NA
to take
from LifeHistData
. The sex of individuals occurring as parent in
Pedigree
cannot be altered.
- Sex2
Sex of ID2
- AgeDif
Age difference in whole time units, BirthYear1 - BirthYear2
(i.e. positive if ID2 is born before ID1). If NA
, calculated from
LifeHistData
. Use '999' to explicitly specify 'unknown'.
- focal
relationship character abbreviation; PO, FS, HS, GP or U. See
Details for its effect and explanation of abbreviations. Default: U
- patmat
1=maternal relatives, 2=paternal relatives. Only relevant for
HS & GP, for which it defaults to Sex1, or 1 if Sex1=3, but is currently
only predictably implemented for pairs of two genotyped individuals.
Always equal to Sex2 for PO pairs when Sex2 is known.
- dropPar1
Drop the parents of ID1
before calculating the pair
likelihood, rather than conditioning on them; choose from 'none', 'dam',
'sire', or 'both'. See example. If e.g. the pair shares a common mother,
'none' and 'sire' will condition on this shared mother and not calculate the
likelihood that they are maternal siblings, while dropPar1='dam' or 'both'
will calculate that likelihood, and the other likelihoods as if the mother
of ID1 were unknown.
- dropPar2
as dropPar1
, for ID2
GenoM
numeric matrix with genotype data: One row per individual,
one column per SNP, coded as 0, 1, 2, missing values as a negative number
or NA. You can reformat data with GenoConvert
, or use other
packages to get it into a genlight object and then use as.matrix
.
Pedigree
dataframe with columns id-dam-sire; likelihoods will be
calculated conditional on the pedigree. May include non-genotyped
individuals, which will be treated as dummy individuals.
LifeHistData
data.frame with up to 6 columns:
- ID
max. 30 characters long
Sex
1 = female, 2 = male, 3 = unknown, 4 = hermaphrodite,
other numbers or NA = unknown
BirthYear
birth or hatching year, integer, with missing values as NA
or any negative number.
BY.min
minimum birth year, only used if BirthYear is missing
BY.max
maximum birth year, only used if BirthYear is missing
Year.last
Last year in which individual could have had offspring. Can
e.g. in mammals be the year before death for females, and year after death
for males.
"Birth year" may be in any arbitrary discrete time unit relevant to the
species (day, month, decade), as long as parents are never born in the same
time unit as their offspring, and only integers are used. Individuals do not
need to be in the same order as in `GenoM', nor do all genotyped individuals
need to be included.
AgePrior
logical (TRUE/FALSE
) whether to estimate the ageprior
from Pedigree
and LifeHistData
, or a matrix as generated by
MakeAgePrior
and included in the sequoia
output. The AgePrior
affects which relationships are considered
possible: only those where \(P(A|R) / P(A) > 0\). When TRUE
,
MakeAgePrior
is called using its default values. When
FALSE
, all relationships are considered possible for all age
differences, except that parent-offspring pairs cannot have age difference
zero, and grand-parental pairs have an age difference of at least two.
SeqList
list with output from sequoia
. If input
parameter Pedigree=NULL
, SeqList$Pedigree
will be used if
present, and SeqList$PedigreePar
otherwise. If SeqList$Specs
is present, input parameters with the same name as its items are ignored.
The list elements 'LifeHist', 'AgePriors', and 'ErrM' are also used if
present, and override the corresponding input parameters.
Complex
Breeding system complexity. Either "full" (default), "simp"
(simplified, no explicit consideration of inbred relationships), "mono"
(monogamous).
Herm
Hermaphrodites, either "no", "A" (distinguish between dam and
sire role, default if at least 1 individual with sex=4), or "B" (no
distinction between dam and sire role). Both of the latter deal with
selfing.
Err
estimated genotyping error rate, as a single number, or a length 3
vector with P(hom|hom), P(het|hom), P(hom|het), or a 3x3 matrix. See
details below. The error rate is presumed constant across SNPs, and
missingness is presumed random with respect to actual genotype. Using
Err
>5% is not recommended, and Err
>10% strongly
discouraged.
ErrFlavour
function that takes Err
(single number) as input,
and returns a length 3 vector or 3x3 matrix, or choose from inbuilt options
'version2.9', 'version2.0', 'version1.3', or 'version1.1', referring to the
sequoia version in which they were the default. Ignored if Err
is a
vector or matrix. See ErrToM
for details.
Tassign
minimum LLR required for acceptance of proposed relationship,
relative to next most likely relationship. Higher values result in more
conservative assignments. Must be zero or positive.
Tfilter
threshold log10-likelihood ratio (LLR) between a proposed
relationship versus unrelated, to select candidate relatives. Typically a
negative value, related to the fact that unconditional likelihoods are
calculated during the filtering steps. More negative values may decrease
non-assignment, but will increase computational time.
quiet
logical, suppress messages
Plot
logical, display scatter plots by PlotPairLL
.