decodeQuality(ChIPsim)
decodeQuality()所属R语言包:ChIPsim
Conversion between numerical and ASCII representation of read qualities
之间的转换和ASCII数值表示只读素质
译者:生物统计家园网 机器人LoveR
描述----------Description----------
These functions convert an ASCII encoded sequence of read qualities into a numeric vector of error probabilities and vice versa.
这些功能的错误概率,反之亦然数字矢量转换成ASCII编码序列的阅读素质。
用法----------Usage----------
decodeQuality(quality, type = c("Illumina", "Sanger", "Solexa"))
encodeQuality(quality, type = c("Illumina", "Sanger", "Solexa"))
参数----------Arguments----------
参数:quality
For decodeQuality a character string representing the read qualities for a single sequence read. For encodeQuality a numeric vector of error probabilities.
decodeQuality一个字符串,表示为一个单一的序列读素质阅读。 encodeQuality的错误概率的数字向量。
参数:type
Type of encoding to use.
使用的编码类型。
Details
详情----------Details----------
See extractQuality for a description of the currently supported encodings.
看到extractQuality目前支持的编码的描述。
值----------Value----------
Either a numeric vector of error probabilities or a character string of encoded read quality scores. Each entry in the vector corresponds to one character in the input.
无论是一个错误的概率或一个编码字符串的数字向量阅读的质量得分。向量中的每个条目对应一个字符的输入。
作者(S)----------Author(s)----------
Peter Humburg
参见----------See Also----------
extractQuality
extractQuality
举例----------Examples----------
## decodeQuality and encodeQualty are the inverse operations [的#decodeQuality和encodeQualty逆操作]
## of each other as one might expect[正如人们所预料彼此#]
quality <- "IIIIIIIIIIIIICIIGIIIIGII95III6II-II0"
errorProb <- decodeQuality(quality, type="Sanger")
qualitySanger <- encodeQuality(errorProb, type="Sanger")
all.equal(quality, qualitySanger)
## They can also be used to convert between encodings[#,它们也可以用于编码之间的转换]
qualityIllumina <- encodeQuality(errorProb, type="Illumina")
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|