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

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

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

                                         function to convert the numeric encoding of a DNA sequence
                                         函数来转换成数字编码的DNA序列的

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

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

By default, if no "levels" arguments is provided, this function will just transform your vector of integer into a DNA sequence  according to the lexical order: 0 -> "a", 1 -> "c",  2 -> "g", 3 -> "t", others -> NA.
默认情况下,如果没有“级别”参数,这个函数只会将您的整数向量的一个DNA序列中的词汇的顺序:0 -> "a",1 -> "c", 2 -> "g", 3 -> "t",others -> NA。


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


n2s(nseq, levels = c("a", "c", "g", "t"), base4 = TRUE)



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

参数:nseq
A vector of integers  
一个整型vector


参数:levels
the translation vector  
平移向量


参数:base4
when this logical is true, the numerical encoding of levels starts at 0, when it is false the numerical encoding of  levels starts at 1.
时,这个逻辑是真实的,数字编码levels从0开始,当它是假的levels从1开始的数字编码。


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

a vector of characters
一个字符的矢量


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


J.R. Lobry



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



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

s2n
s2n


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


##example of the default behaviour:[#示例的默认行为:]
nseq <- sample(x = 0:3, size = 100, replace = TRUE)
n2s(nseq)
# Show what happens with out-of-range and NA values:[显示与输出的范围和NA值会发生什么:]
nseq[1] <- NA
nseq[2] <- 777
n2s(nseq)[1:10]
# How to get an RNA instead:[如何获得的RNA,而不是:]
n2s(nseq, levels = c("a", "c", "g", "u"))

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-5-20 13:11 , Processed in 0.025373 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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