geneContribution(GeneticsPed)
geneContribution()所属R语言包:GeneticsPed
Gene contribution or proportion of genes in pedigree by individual
或在血统基因的比例由个人基因贡献
译者:生物统计家园网 机器人LoveR
描述----------Description----------
geneContribution calculates gene contribution as proportion of genes in pedigree by individual with higher number of descendants will have higher values.
geneContribution计算个别的基因家系的基因比例的贡献,具有较高的后代数量将有更高的价值。
用法----------Usage----------
geneContribution(x, relative=TRUE)
参数----------Arguments----------
参数:x
pedigree
系谱
参数:relative
logical, should results be presented relative to number of individuals in the pedigree
逻辑,应该结果提出相对一些个人的系谱
值----------Value----------
Gene contribution values i.e. higher the values higher the contribution of genes by particular individual in the pedigree. When relative=FALSE, values represent number of individuals (in conceptually additive manner i.e. 0.5 + 0.75 = 1.25 individual) in the pedigree that carry genes of a particular individual. With relative=TRUE, values represent the same result as ratios to all individuals in the pedigree. Value 0 indicates that individual did not pass its genes to next generations.
基因的贡献值,即较高的高值特别是个体的谱系基因的贡献。当relative=FALSE,值代表在某一个人的基因谱系,进行个人概念添加剂的方式,即0.5 + 0.75 = 1.25个人。用relative=TRUE,值代表的谱系中的所有个人比例相同的结果。值0表示,个别没有通过其下一代的基因。
作者(S)----------Author(s)----------
Gregor Gorjanc
参见----------See Also----------
Pedigree
Pedigree
举例----------Examples----------
ped <- generatePedigree(nId=5, nGeneration=4, nFather=1, nMother=2)
geneContribution(ped)
geneContribution(ped, relative=FALSE)
## geneContribution(ped[5:15, ]) ## needs [ method[geneContribution#(PED [5:15])##需要[方法]
## More than one father example[#更多比一个父亲的例子]
ped <- data.frame( id=c(1, 2, 3, 4, 5, 6, 7),
father1=c(0, 0, 0, 2, 1, 1, 2),
father2=c(0, 0, 0, 0, 0, 2, 0),
mother=c(0, 0, 0, 0, 3, 3, 3),
generat=c(1, 1, 1, 2, 2, 2, 2))
ped <- Pedigree(ped, ascendant=c("father1", "father2", "mother"),
ascendantSex=c(1, 1, 2), ascendantLevel=c(1, 1, 1),
unknown=0, generation="generat")
geneContribution(ped)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|