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

R语言 IRanges包 RangedSelection-class()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-2-25 22:29:57 | 显示全部楼层 |阅读模式
RangedSelection-class(IRanges)
RangedSelection-class()所属R语言包:IRanges

                                        Selection of ranges and columns
                                         选择的范围和列

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

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

A RangedSelection represents a query against a table of interval data in terms of ranges and column names. The ranges select any table row with an overlapping interval. Note that the
一个RangedSelection代表对间隔的范围和列名数据表的查询。选择范围重叠区间的任何表行。请注意


Details

详情----------Details----------

Traditionally, tabular data structures have supported the subset function, which allows one to select a subset of the rows and columns from the table. In that case, the rows and columns are specified by two separate arguments. As querying interval data sources, especially those external to R, such as binary indexed files and databases, is increasingly common, there is a need to encapsulate the row and column specifications into a single data structure, mostly for the sake of interface cleanliness. The RangedSelection class fills that role.
传统上,表格数据结构支持subset功能,它允许一个选择从表中的行和列的一个子集。在这种情况下,由两个独立的参数指定的行和列。查询时间间隔的数据来源,特别是那些为R的外部,如二进制索引的文件和数据库,是越来越普遍,有必要封装到一个单一的数据结构,主要用于接口清洁的缘故,行和列规范。 RangedSelection类填补了这一角色。


构造----------Constructor----------




RangedSelection(ranges = RangesList(), colnames = character()): Constructors a RangedSelection with the given ranges and colnames.
RangedSelection(ranges = RangesList(), colnames = character()):构造一个RangedSelection给ranges和colnames。


强迫----------Coercion----------




as(from, "RangedSelection"): Coerces from to a RangedSelection object. Typically, from is a RangesList, the ranges of which become the ranges in the new RangedSelection.
as(from, "RangedSelection")胁迫fromRangedSelection对象的。通常情况下,from是RangesList,范围,成为在新的RangedSelection范围。


存取----------Accessors----------

In the code snippets below, x is always a RangedSelection.
在下面的代码片段,x是RangedSelection。




ranges(x), ranges(x) <- value: Gets or sets the ranges, a RangesList, that select rows with overlapping intervals.
ranges(x), ranges(x) <- value:获取或设置范围,RangesList,选择行重叠的时间间隔。




colnames(x), colnames(x) <- value: Gets the  names, a character vector, indicating the columns.
colnames(x), colnames(x) <- value:获取的名字,一个character向量,指示列。


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


Michael Lawrence



举例----------Examples----------


  rl <- RangesList(chr1 = IRanges(c(1, 5), c(3, 6)))

  RangedSelection(rl)
  as(rl, "RangedSelection") # same as above[与上述相同]

  RangedSelection(rl, "score")

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-2-5 16:48 , Processed in 0.022192 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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