strand(GenomicRanges)
strand()所属R语言包:GenomicRanges
Accessing strand information
访问链信息
译者:生物统计家园网 机器人LoveR
描述----------Description----------
The strand generic is meant as an accessor for strand information. Four methods are defined by the GenomicRanges package, described below.
strand通用是链信息存取。四种方法定义所述,由GenomicRanges包。
用法----------Usage----------
strand(x)
参数----------Arguments----------
参数:x
The object from which to obtain a strand factor, can be missing.
对象从中获得股的因素,可以失踪。
Details
详情----------Details----------
If x is missing, returns an empty factor with the standard levels that any strand factor should have: +, -, and * (for either).
如果x丢失,返回一个空的因素,与标准的水平应该有任何股因素:+,-,*(要么)。
If x is a character vector or factor, it is coerced to a factor with the levels listed above.
如果x是一个特征向量或因素,它是被迫的因素与上面列出的水平。
If x is an integer vector, it is coerced to a factor with the levels listed above. 1 and -1 values in x are mapped to the + and - levels respectively. NAs in x produce NAs in the result.
如果x是一个整数向量,它是被迫的因素与上面列出的水平。 1和-1x+和-水平分别映射值。 NA中x生产NA的结果。
If x is a logical vector, it is coerced to a factor with the levels listed above. FALSE and TRUE values in x are mapped to the + and - levels respectively. NAs in x produce NAs in the result.
如果x是一个逻辑的向量,它是被迫的因素与上面列出的水平。 FALSE和TRUEx+和-水平分别映射值。 NA中x生产NA的结果。
If x inherits from DataTable, the "strand" column is returned as a factor with the levels listed above. If x has no "strand" column, this return value is populated with NAs.
x如果继承DataTable,"strand"列返回与上面列出的水平的一个因素。如果x有没有"strand"列,这个返回值填入NA的。
作者(S)----------Author(s)----------
Michael Lawrence
举例----------Examples----------
strand()
strand(c("+", "-", NA, "*"))
strand(c(-1L, 1L, NA, -1L, NA))
strand(c(FALSE, FALSE, TRUE, NA, TRUE, FALSE))
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|