gen.find.Min.Distance.MRCA: Finds the minimum distances between pairs of individuals...

Description Usage Arguments Value See Also Examples

Description

Returns the shortest distances (number of meioses) between pairs of probands given the matrix of MRCAs output by the gen.findMRCA function.

Usage

1
gen.find.Min.Distance.MRCA(genMatrix, individuals="ALL", ancestors="ALL")

Arguments

genMatrix

Matrix of most recent common ancestors, MRCAs, obtained with gen.findMRCA. Required.

individuals

Vector of proband id numbers to include. All are included by default.

ancestors

Vector of MRCA id numbers to include. All are included by default.

Value

returns a matrix

See Also

gen.genealogy gen.founder gen.findMRCA gen.findDistance gen.findFounders

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
data(geneaJi) 
genJi<-gen.genealogy(geneaJi) 
matMRCA<-gen.findMRCA(genJi, individuals=c(1,29), NbProcess = 1)
gen.find.Min.Distance.MRCA(matMRCA)


## Not run: Increasing NbProcess will decrease execution time
data(genea140) 
gen140<-gen.genealogy(genea140) 
matMRCA<-gen.findMRCA(gen140, individuals=c(409033,408728,408828), NbProcess = 1)
gen.find.Min.Distance.MRCA(matMRCA, individuals=c(409033,408728))


Search within the GENLIB package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.