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

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

[复制链接]
发表于 2012-9-30 01:14:27 | 显示全部楼层 |阅读模式
bma(seqinr)
bma()所属R语言包:seqinr

                                        Computing an IUPAC nucleotide symbol
                                         计算IUPAC核苷酸符号

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

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

This function returns the IUPAC symbol for a nucleotide sequence, for instance c("c", "c", "g") is coded by "s".
这个函数返回IUPAC的核苷酸序列的符号,例如c("c", "c", "g")编码"s"。


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


bma(nucl, warn.non.IUPAC = TRUE, type = c("DNA", "RNA"))



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

参数:nucl
a nucleotide sequence as a vector of single chars
作为向量的单个字符的核苷酸序列


参数:warn.non.IUPAC
if TRUE warns when no IUPAC symbol is possible
如果为true时发出警告没有IUPAC符号是可能的


参数:type
whether this is a DNA or a RNA sequence
这是否是一个DNA或RNA序列


Details

详细信息----------Details----------

The sequence is forced in lower case letters and ambiguous bases are expanded before trying to find an IUPAC symbol.
被迫在小写字母的顺序和暧昧的碱基,然后再尝试找到一个IUPAC符号扩展。


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

A single IUPAC symbol in lower case, or NA when this is not possible.
较低的情况下,或NA时,这是不可能的一个单一的IUPAC符号。


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


J.R. Lobry



参考文献----------References----------

at: http://www.chem.qmul.ac.uk/iubmb/misc/naseq.html


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

See amb for the reverse operation.  Use toupper to change lower case letters into
见amb反向操作。使用toupper改变小写字母


实例----------Examples----------



stopifnot(bma(s2c("atatattttata")) == "w")
stopifnot(bma(s2c("gcggcgcgcggc")) == "s")
stopifnot(bma(s2c("ACGT")) == "n")
stopifnot(is.na(bma(s2c("atatttt---tatat")))) # a warning is issued[发出警告]

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-5-20 12:22 , Processed in 0.022200 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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