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:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|