numericCHR(quantsmooth)
numericCHR()所属R语言包:quantsmooth
Conversion of chromosome IDs between numeric and character
染色体的ID数字和字符之间的转换
译者:生物统计家园网 机器人LoveR
描述----------Description----------
The function converts chromosomal ids to their numeric form, and the sex chromosomes to values between 98 and 100. This simplifies sorting on chromosome ID
函数染色体IDS转换成数字形式,与性染色体为98和100之间的值。这简化了染色体上的ID进行排序
用法----------Usage----------
numericCHR(CHR)
characterCHR(CHR)
参数----------Arguments----------
参数:CHR
character/numeric vector for both functions the mode of the input is not forced. For numericCHR strings "X","Y" and "XY" are converted to 98,99 and 100 respectively.
字符/数字矢量两种功能输入模式不被强迫。对于numericCHR弦的“X”,“Y”和“XY”转换为分别为98,99和100。
值----------Value----------
numericCHR returns a numeric vector of same length as CHR characterCHR returns a character vector of same length as CHR
numericCHRCHRcharacterCHRCHR返回的一个相同长度的字符向量返回一个相同长度的数字向量
作者(S)----------Author(s)----------
Jan Oosting
举例----------Examples----------
chroms<-c("3","2","8","X","7","Y","5","1","9","10","11","12","4","6")
sort(chroms)
sort(numericCHR(chroms))
characterCHR(sort(numericCHR(chroms)))
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|