找回密码
 注册
查看: 482|回复: 0

R语言 ChIPsim包 readError()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-2-25 14:57:00 | 显示全部楼层 |阅读模式
readError(ChIPsim)
readError()所属R语言包:ChIPsim

                                         Introduce errors into read sequence based on quality scores
                                         引入基于质量分数的读序列中的错误

                                         译者:生物统计家园网 机器人LoveR

描述----------Description----------

Given a read sequence and quality this function introduces errors by first choosing positions  that should be modified based on the quality score and then exchanges nucleotides based on the probabilities given in prob.
鉴于一个只读的序列和质量,功能介绍,首先选择基础上的质量得分,然后交流核苷酸对prob给出的概率为基础,应修改的立场错误。


用法----------Usage----------


readError(read, qual, alphabet = c("A", "C", "G", "T"),
        prob = defaultErrorProb(), ...)



参数----------Arguments----------

参数:read
A character string representing a read sequence.  
一个字符串,代表读序列。


参数:qual
Numeric vector of read error probabilities.  
数字矢量读取错误概率。


参数:alphabet
Alphabet used for read sequence.  
读序列中使用的字母。


参数:prob
Nucleotide exchange probabilities.  
核苷酸交换概率。


参数:...
Further arguments (currently ignored).  
(目前忽略)进一步论据。


Details

详情----------Details----------

If the read sequence contains letters that are not part of alphabet they are replaced  by the first entry of alphabet before positions of sequencing errors are determined. The alphabet used has to match the names used in prob.
如果读取的序列中包含的字母,不属于alphabet他们取代由alphabet测序错误的位置之前确定的第一项。使用字母表中有匹配prob使用的名称。


值----------Value----------

The modified read sequence.
修改后的读序列。


作者(S)----------Author(s)----------



Peter Humburg




参见----------See Also----------

defaultErrorProb, readSequence
defaultErrorProb,readSequence


举例----------Examples----------


set.seed(42)

## generate sequence read and quality[#生成序列读取和质量。]
quality <- paste(sample(unlist(strsplit(rawToChar(as.raw(33:126)),"")),
        36, replace = TRUE), collapse="")
errorProb <- decodeQuality(quality, type = "Sanger")
read <- paste(sample(c("A", "C", "G", "T"), 36, replace = TRUE),
        collapse = "")

## use readError to introduce sequencing errors[#使用readError引进测序错误]
read2 <- readError(read, errorProb)

all.equal(read, read2)  ## "1 string mismatch"[#“字符串不匹配”]

转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。


注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|小黑屋|生物统计家园 网站价格

GMT+8, 2025-5-14 14:49 , Processed in 0.021637 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表