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

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

[复制链接]
发表于 2012-2-26 13:36:58 | 显示全部楼层 |阅读模式
BigWigFile-class(rtracklayer)
BigWigFile-class()所属R语言包:rtracklayer

                                        BigWigFile objects
                                         BigWigFile对象

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

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

A BigWigFile object is a reference to a BigWig file. It exists to support methods with behavior particular to BigWig files.
一个BigWigFile对象是一个参考到一个Bigwig的文件。它的存在是为了支持Bigwig的文件,特别是与行为的方法。


存取方法----------Accessor Methods----------

In the code snippets below, x represents a BigWigFile object.
在下面的代码片段,xBigWigFile对象。

seqinfo(x): Gets the Seqinfo object indicating the lengths of the sequences for the intervals in the file. No circularity or genome information is available.
seqinfo(x):获取Seqinfo对象表示在该文件的时间间隔序列的长度。不圆或基因组信息是可用的。


进口----------Import----------

import.bw(con, selection = BigWigSelection(ranges, ...), ranges = con, ...): Imports the intervals from a big wig file con, according to selection, a RangedSelection object indicating the intervals to retrieve from a bigWig file. Supported types of con include a BigWigFile and a file name. Note that this retrieval is very efficient, due to the indexing of the bigWig format.
import.bw(con, selection = BigWigSelection(ranges, ...), ranges = con, ...):进口的时间间隔,从一个大的假发文件conselection,RangedSelection对象显示的时间间隔从要人文件检索。 con支持的类型包括BigWigFile和文件名。请注意,这个检索是非常有效的,由于要人格式的索引。


公用事业----------Utilities----------

summary(ranges = as(seqinfo(object), "GenomicRanges"), size = 1L, type = c("mean", "min", "max", "coverage", "sd"), defaultValue = NA_real_): Aggregates the intervals in the file that fall into ranges, which should be something coercible to GRanges.  The aggregation essentially compresses each sequence to a length of size. The algorithm is specified by type; available algorithms include the mean, min, max, coverage (percent sequence covered by at least one feature), and standard deviation. When a window contains no features, defaultValue is assumed. The result is an RleList, with an element for each element in ranges. The driving use case for this is visualization of coverage when the screen space is small compared to the viewed portion of the sequence. The operation is very fast, as it leverages cached multi-level summaries present in every BigWig file.
summary(ranges = as(seqinfo(object), "GenomicRanges"), size = 1L, type = c("mean", "min", "max", "coverage", "sd"), defaultValue = NA_real_):聚合文件中的间隔下降到ranges,这应该是强制转换的东西GRanges。聚集基本上每个序列压缩到size长度。该算法指定type;可用算法包括平均,最小,最大,覆盖面(%至少有一个功能所涵盖的序列)和标准偏差。当一个窗口,不包含任何功能,defaultValue假设。结果是一个RleList在ranges每个元素的元素。此用例是覆盖可视化时的屏幕空间是比较小的部分序列看。操作速度非常快,因为它利用高速缓存的多层次在每Bigwig的文件摘要。


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


Michael Lawrence



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

import.bw and export.bw for reading and writing BigWig files, respectively.
import.bw和export.bw阅读和写作要人文件,分别。


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


bwf <- BigWigFile(system.file("tests", "test.bw", package = "rtracklayer"))
seqinfo(bwf)
track <- import.bw(bwf, asRangedData = FALSE)
summary(bwf) # for each sequence, average all values into one[对于每个序列,平均到一个所有值]
summary(bwf, range(head(track))) # just average the first few features[只是平均的几个特点]
summary(bwf, size = GenomicRanges::seqlengths(bwf) / 10) # 10X reduction[10X减少]
summary(bwf, type = "min") # min instead of mean[分钟,而不是平均]

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-1-24 21:04 , Processed in 0.024524 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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