Learn R Programming

GENLIB (version 1.0.3)

gen.gc: Genetic contribution of ancestors

Description

Returns the genetic contribution of ancestors to the gene pool of sepcifiec probands

Usage

gen.gc(gen, pro=0, ancestors=0, vctProb=c(0.5,0.5,0.5,0.5), typeCG="IND")

Arguments

Value

A matrix with rows corresponding to probands and columns corrsponding to ancestors when typeCG="IND". For the other typeCG values, rows are ancestors and there is one column containing mean, product, total or cumulative values.

References

Roberts DF. (1968) Genetic effects of population size reduction. Nature, 220, 1084-1088. O'Brien E, Jorde LB, Ronnlof B, Fellman JO, Eriksson AW. (1988) Founder effect and genetic disease in Sottunga, Finland. American Journal of Physical Anthropology, 77, 335-346.

See Also

gen.genealogy gen.rec gen.occ gen.implex gen.meangendepth gen.completeness

Examples

Run this code
data(geneaJi) 
genJi<-gen.genealogy(geneaJi) 
gc<-gen.gc(genJi, pro=c(1,29), ancestors=c(3,6,10,12,14,16,18,20,26,28))
gc
gc_cum<-gen.gc(genJi, pro=c(1,29), ancestors=c(3,6,10,12,14,16,18,20,26,28), type="CUMUL")
gc_cum

data(genea140) 
gen140<-gen.genealogy(genea140) 
gc<-gen.gc(gen140, pro=c(454422,676521,677273,717537,717634,717709,868572), 
           ancestors=c(18305,18528,31114,18325))
gc
Mother-daughter transmission only with probability=0.5
gc_MoLi<-gen.gc(gen140, pro=c(217891,302718,409282,802424,409682,443151), 
                ancestors=c(18321,218231,296200,39066,18679,442607),vctProb=c(0,0,0.5,0))
gc_MoLi

Run the code above in your browser using DataLab