makeScoresDf: Make data.frame object from scores object

Description Usage Arguments Value

View source: R/makeScoresDf.R

Description

Make data.frame object from scores object

Usage

1
makeScoresDf(scores, firstParentType)

Arguments

scores

list object with a comparison information for all trio combinations.

firstParentType

character vector of length one with one of dams or sires.

Value

A data.frame object containing the following columns

  1. refId The ID of the offspring

  2. damSex The sex of the potential dam, which should always be "F".

  3. damId The ID of the potential dam

  4. damMissingLoci The number of missing loci, which are the loci without genotypes in the parent.

  5. damInvalidLoci The number of invalid loci, which are the loci missing in the offspring but present in the parent.

  6. damDiscrepantLoci The number of discrepant loci, the non-matching loci in the parent in offspring where both have genotypes.

  7. damNumLociCompared The number of loci compared

  8. damFractionNonDiscrepant The fraction of non-discrepant loci, which is the ratio of (numLociCompared - discrepantLoci) / numLociCompared.

  9. sire A sire from the list of potential sires nested within the current dam of the list of dams nested inside the current offspring.

  10. sireSex Sex of the sire, which should always be "M"

  11. sireMissingLoci The number of missing loci, which are the loci without genotypes in the parent.

  12. sireInvalidLoci The number of invalid loci, which are the loci missing in the offspring but present in the parent.

  13. sireDiscrepantLoci The number of discrepant loci, the non-matching loci in the parent in offspring where both have genotypes.

  14. sireNumLociCompared The number of loci compared

  15. sireFractionNonDiscrepant The fraction of non-discrepant loci, which is the ratio of (sireNumLociCompared - sireDiscrepantLoci) / sireNumLociCompared.


rmsharp/parentfindr documentation built on Nov. 29, 2020, 4:33 a.m.