a(seqinr)
a()所属R语言包:seqinr
Converts amino-acid three-letter code into the one-letter one
氨基酸的三个字母的代码转换成一个一个字母
译者:生物统计家园网 机器人LoveR
描述----------Description----------
This is a vectorized function to convert three-letters amino-acid code into the one-letter one, for instance "Ala" into "A".
这是一个矢量函数将其转换成一个一个字母,例如“阿拉”三字母氨基酸代码为“A”。
用法----------Usage----------
a(aa)
参数----------Arguments----------
参数:aa
A vector of string. All strings are 3 chars long.
一个向量的字符串。所有的字符串是3个字符长。
Details
详细信息----------Details----------
Allowed character values for aa are given by aaa(). All other values will generate a warning and return NA. Called without arguments, a() returns the list of all possible output values.
允许的字符值aa的aaa()。所有其他值会产生一个警告,并返回NA。不带参数调用,a()列表返回的所有可能的输出值。
值----------Value----------
A vector of single characters.
单个字符的矢量。
(作者)----------Author(s)----------
D. Charif, J.R. Lobry
参考文献----------References----------
http://www.chem.qmul.ac.uk/iupac/AminoAcid/<br> <code>citation("seqinr")</code>
参见----------See Also----------
aaa, translate
aaa,translate
实例----------Examples----------
#[]
# Show all possible input values:[显示所有可能的输入值:]
#[]
aaa()
#[]
# Convert them in one letter-code:[它们转换成一个字母代码:]
#[]
a(aaa())
#[]
# Check consistency of results:[检查结果的一致性:]
#[]
stopifnot( aaa(a(aaa())) == aaa())
#[]
# Show what happens with non-allowed values:[显示会发生什么事与非允许的值:]
#[]
a("SOS") # should be NA and a warning is generated[应该是NA,并发出警告]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|