A pure Julia port of R's GENLIB genetics and genealogical library
MIT License
Tools for pedigree analysis.
A pure Julia port of R's GENLIB genetics and genealogical library.
gen.findMRCA
in R's GENLIB;The Tutorials explain how to get started using GenLib.
See the Index for the complete list of documented functions and types.
The Bibliography lists the sources used for implementing the algorithms.
julia> ]
pkg> add GenLib
julia> import GenLib as gen
julia> ped = gen.genealogy(gen.geneaJi)
A pedigree with:
29 individuals;
44 parent-child relations;
15 men;
14 women;
3 subjects;
8 generations.
julia> gen.phi(ped)
33 Matrix{Float64}:
0.591797 0.371094 0.0722656
0.371094 0.591797 0.0722656
0.0722656 0.0722656 0.535156
julia> gen.pro(ped)
3-element Vector{Int64}:
1
2
29
julia>ped[1]
ind: 1
father: 4
mother: 3
sex: 1
julia> ped[1].father
ind: 4
father: 8
mother: 6
sex: 1
julia> ped[1].father.ID
4
julia> ped[1].father.children
2-element Vector{GenLib.Individual}:
ind: 1
father: 4
mother: 3
sex: 1
ind: 2
father: 4
mother: 3
sex: 1