Learn R Programming

nadiv (version 2.9)

findDFC: Finds the double first cousins in a pedigree

Description

Given a pedigree, all pairs of individuals that are double first cousins are returned.

Usage

findDFC(pedigree, parallel = FALSE, ncores = getOption("cores"))

Arguments

pedigree
A pedigree with columns organized: ID, Dam, Sire
parallel
A logical statement indicating if parallelization should be attempted. Note, only reliable for Mac and Linux operating systems.
ncores
Number of cpus to use, default is maximum available

Value

  • PedPositionListgives the list of row numbers for all the pairs of indidivuals that are related as double first cousins
  • DFCgives the list of IDs, as characters, for all the pairs of individuals that are related as double first cousins
  • FamilyCntIf two individuals, i and j, are double first cousins, then i's siblings will also be double first cousins with j's siblings. Therefore, this is the total number of family pairs where offspring are related as double first cousins.

Details

If parallel = TRUE then the pacakge multicore must be loaded.