RangesMatchingList-class(IRanges)
RangesMatchingList-class()所属R语言包:IRanges
List of Matchings between Ranges
山脉之间的匹配的名单
译者:生物统计家园网 机器人LoveR
描述----------Description----------
The RangesMatchingList class stores a set of matchings, represented as RangesMatching objects, between the ranges in one RangesList object and the
类RangesMatchingList存储在一个RangesMatching对象和范围之间的匹配集,表示为RangesList对象,
Details
详情----------Details----------
Roughly the same set of utilities are provided for RangesMatchingList as for RangesMatching:
公用事业大致相同的一组所提供的RangesMatchingList为RangesMatching:
The as.matrix method coerces a RangesMatchingList in a similar way to RangesMatching, except a column is prepended that indicates which space (or element in the query RangesList) to which the row corresponds.
as.matrix方法胁迫一以类似的方式RangesMatchingListRangesMatching,除前面一列,表示空间(或元),以该行查询RangesList对应。
The as.table method flattens or unlists the list, counts the number of matchings for each query range and outputs the counts as a table, which has the same shape as from a single RangesMathing.
as.table方法平坦,或unlists列表,计算每个查询范围的匹配数量和输出table,它具有相同的形状,从一个单一的RangesMathing计数。
To transpose a RangesMatchingList x, so that the subject and query in each space are interchanged, call t(x). This allows, for example, counting the number of subjects that matched using as.table.
转RangesMatchingListx,使每个空间的主体和查询的互换,叫t(x)。例如,这允许计数的科目数量匹配使用as.table。
To get the actual regions of intersection between the overlapping ranges, use the ranges accessor.
为了得到交点之间的重叠范围的实际区域,使用ranges存取。
强迫----------Coercion----------
In the code snippets below, x is a RangesMatchingList object.
在下面的代码片段,x是RangesMatchingList对象。
as.matrix(x): calls as.matrix on each RangesMatching, combines them row-wise and offsets the indices so that they are aligned with the result of calling unlist on the query and subject.
as.matrix(x):调用as.matrix每个RangesMatching,结合他们行明智和抵消了指标,使它们与调用unlist查询和主题的结果一致。
as.table(x): counts the number of matchings for each query range in x and outputs the counts as a table, which is aligned with the result of calling unlist on the query.
as.table(x):计算每个查询范围在x的匹配数量和输出计数作为一个table,这是调用unlist查询结果一致。
t(x): Interchange the query and subject in each space
t(x):交换中的每一个空间的查询和主题
存取----------Accessors----------
queryHits(x): Gets the indices of overlapping ranges in the query, equivalent to as.matrix(x)[,1].
queryHits(x):获取查询范围重叠的指数,相当于as.matrix(x)[,1]。
subjectHits(x): Gets the indices of overlapping ranges in the subject, equivalent to as.matrix(x)[,2].
subjectHits(x):获取重叠在主题范围的指标,相当于as.matrix(x)[,2]。
space(x): gets the character vector naming the space in the query RangesList for each match, or NULL if the query did not have any names.
space(x):命名空间查询得到的特征向量RangesList每场比赛,或NULL如果查询没有任何名称。
ranges(x, query, subject): returns a RangesList holding the intersection of the ranges in the RangesList objects query and subject, which should be the same subject and query used to generate x. Eventually, we might store the query and subject inside x, in which case the arguments would be redundant.
,ranges(x, query, subject):返回一个RangesList范围的交集RangesList对象query和subject,这应该是同一主题和查询用来生成x。最终,我们可能存储里面x的查询和主题,在这种情况下,参数是多余的。
注意----------Note----------
This class is highly experimental. It has not been well tested and
这个类是高度实验性的。它一直没有得到很好的测试和
作者(S)----------Author(s)----------
Michael Lawrence
参见----------See Also----------
findOverlaps, which generates an instance of this class.
findOverlaps,生成这个类的一个实例。
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|