pedigreePairwiseRelatedness(GWASTools)
pedigreePairwiseRelatedness()所属R语言包:GWASTools
Calculate theoretical pairwise relatedness values from pedigrees
从家谱计算理论成对的关联值
译者:生物统计家园网 机器人LoveR
描述----------Description----------
This function calculates the pairwise relatedness values from pedigree data.
此功能从系谱数据计算成对的关联值。
用法----------Usage----------
pedigreePairwiseRelatedness(pedigree, use.any.ids = FALSE)
参数----------Arguments----------
参数:pedigree
A dataframe containing the pedigree information for the samples to be examined with columns labeled "family", "individ", "mother", "father" and "sex" containing the identity numbers of the family, individual, individual's mother, individual's father and individual's gender (coded as "M" or "F") .
包含的信息被标记为“家庭”,“individ”,“母亲”,“父亲”和“性”,包含家庭,个人,个人的身份证号码列检查样品的系谱一个dataframe母亲,父亲个人的和个人的性别(代号为“M”或“F”)。
参数:use.any.ids
A logical value specifying whether pairs of individuals should be created using only id's listed in the "individ" column (if FALSE or if pairs should be created using any id's contained in "individ", "mother" or "father" columns.
对个人是否应使用唯一的ID创建一个逻辑值,指定的上市在的“individ的”列(如FALSE或者对应当建立使用任何ID是包含在“个别”,“母亲”或“父亲”列。
Details
详情----------Details----------
The function assumes (and checks) that there are no one person families, no mismatched mother/father sexes and no impossible relationships. Relatedness is not calculated for inbred families.
函数假设(检查),有没有一个人的家庭,没有匹配的母亲/父亲的男女,没有不可能的关系。自交系家庭的关系是不计算。
值----------Value----------
A list with the following components:
以下组件列表:
参数:inbred.fam
A vector of id's of families with inbreeding (to be handled by hand)
ID与近亲结婚的家庭(由手工处理)向量
参数:relativeprs
A dataframe with columns "Individ1", "Individ2", "relation", "kinship coefficient" and "family" containing the id's of the pair of individuals, the relationship between the individuals if closely related (possible values are "UN" = unrelated, "PO" = parent/offspring, "FS" = full siblings, "HS" = half siblings, and "FC" = first cousins), kinship coefficient and family id.
一列的“Individ1”,“Individ2”,“关系”,“亲属系数”和“家庭”包含对个人的ID是dataframe,个人之间的关系,如果可能值密切相关( “联合国”无关,“宝”父/后代,“财政司司长”=完整的兄弟姐妹,“房协”半兄弟姐妹,和“财委会”=第一表亲),血缘系数和家庭的id。
作者(S)----------Author(s)----------
Cecilia Laurie
参见----------See Also----------
pedigreeClean, pedigreeCheck, pedigreeFindDuplicates
pedigreeClean,pedigreeCheck,pedigreeFindDuplicates
举例----------Examples----------
family <- c(1,1,1,1,2,2,2,2)
individ <- c(1,2,3,4,5,6,7,8)
mother <- c(0,0,1,1,0,0,5,5)
father <- c(0,0,2,2,0,0,6,0)
sex <- c("F","M","F","F","F","M","M","M")
pedigree <- data.frame(family, individ, mother, father, sex)
pedigreePairwiseRelatedness(pedigree)
#$inbred.fam[美元inbred.fam]
#NULL[为NULL]
#$relativeprs[美元relativeprs]
# Individ1 Individ2 relation kinship family[individ1 Individ2关系的亲属家庭]
#1 1 2 U 0.000 1[1 2个U 0.000 1]
#2 1 3 PO 0.250 1[2 1 3 PO 0.250 1]
#3 1 4 PO 0.250 1[3 1 4 PO 0.250 1]
#4 2 3 PO 0.250 1[4 2 3 PO 0.250 1]
#5 2 4 PO 0.250 1[PO 0.250 1 5 2 4]
#6 3 4 FS 0.250 1[6 3 4 FS 0.250 1]
#11 5 6 U 0.000 2[11 5 6ü0.000 2]
#21 5 7 PO 0.250 2[21 5 7 PO 0.250 2]
#31 5 8 PO 0.250 2[31 5月8日PO 0.250 2]
#51 6 7 PO 0.250 2[51 6 7 PO 0.250 2]
#61 6 8 U 0.000 2[61 6 8ü0.000 2]
#8 7 8 HS 0.125 2[8 7 8爆头0.125 2]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|