gen.find.Min.Distance.MRCA | R Documentation |
Returns the shortest distances (number of meioses) between pairs of probands given the matrix of MRCAs output by the gen.findMRCA function.
gen.find.Min.Distance.MRCA(genMatrix, individuals="ALL", ancestors="ALL")
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. |
returns a matrix
gen.genealogy
gen.founder
gen.findMRCA
gen.findDistance
gen.findFounders
data(geneaJi)
genJi<-gen.genealogy(geneaJi)
matMRCA<-gen.findMRCA(genJi, individuals=c(1,29), NbProcess = 1)
gen.find.Min.Distance.MRCA(matMRCA)
# 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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.