Description Usage Arguments Value
Get all of the missing
, invalid
, and descrepant
loci
scores.
1 | getScores(trios, animalAlleles)
|
trios |
List containing a list for each offspring. Each offspring list
contains a named character vector of length one ( |
animalAlleles |
List with all allele information for all animals. |
A list containing a named list for each offspring. The name of each list is the offspring's animal ID. Within each offspring list is a list of potential dams and each of those lists is named using the potential dam's ID. The dam's list contains the following data.
refId
The ID of the offspring
parentSex
The sex of the potential dam, which should always
be "F".
missingLoci
The number of missing loci, which are the loci
without genotypes in the parent.
invalidLoci
The number of invalid loci, which are the loci
missing in the offspring but present in the parent.
discrepantLoci
The number of discrepant loci, the
non-matching loci
in the parent in offspring where both have genotypes.
numLociCompared
The number of loci compared
fractionNonDiscrepant
The fraction of non-discrepant loci,
which is
the ratio of (numLociCompared
- discrepantLoci
) /
numLociCompared
.
pkMatch
A list with the following three elements.
kid
The ID of the offspring
pkLMatch
A logical vector representing the concordance
(TRUE
) or non-concordance FALSE
between the kid and
dam's left allele (pkLMatch
)
pkRMatch
A logical vector representing the concordance
(TRUE
) or non-concordance FALSE
between the kid and
dam's right allele (pkRMatch
).
text
A character vector describing each discrepant record.
Each element contains the name of the discrepant locus, the offspring's
genotype and the dam's genotype.
sires
A list of potential sires nested within the current
dam of the list of dams nested inside the current offspring.
Each sire is represented with
a named list with the sire ID as the name of the list and the contents of
the list are as follows:
refId
The offspring ID
parentSex
Sex of the sire, which should always be "M"
missingLoci
The number of missing loci, which are the
loci
without genotypes in the parent.
invalidLoci
The number of invalid loci, which are the
loci missing
in the offspring but present in the parent.
discrepantLoci
The number of discrepant loci, the
non-matching loci
in the parent in offspring where both have genotypes.
numLociCompared
The number of loci compared
fractionNonDiscrepant
The fraction of non-discrepant
loci, which is
the ratio of (numLociCompared
- discrepantLoci
) /
numLociCompared
.
pkMatch
A list with the following three elements.
kid
The ID of the offspring
pkLMatch
A logical vector representing the concordance
(TRUE
) or non-concordance FALSE
between the kid and
dam's left allele (pkLMatch
)
pkRMatch
A logical vector representing the concordance
(TRUE
) or non-concordance FALSE
between the kid and
dam's right allele (pkRMatch
).
text
A character vector describing each discrepant record.
Each element contains the name of the discrepant locus, the offspring's
genotype and the sire's genotype.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.