shrinkageFun-method(biovizBase)
shrinkageFun-method()所属R语言包:biovizBase
Shrinkage function
收缩功能
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Create a shrinkage function based on specified gaps and shrinkage rate.
创建一个收缩功能的基础上指定的差距和收缩率。
用法----------Usage----------
## For IRanges
## S4 method for signature 'IRanges'
shrinkageFun(obj, max.gap = 1L)
## For GenomicRanges
## S4 method for signature 'GenomicRanges'
shrinkageFun(obj, max.gap = 1L)
参数----------Arguments----------
参数:obj
GenomicRanges object which represent gaps
GenomicRanges对象代表的差距
参数:max.gap
Gaps to be kept, it's a fixed value, if this value is bigger than certain gap interval, then that gap is not going to be shrunk.
保持差距,这是一个固定值,如果这个值大于一定的差距间隔,那么这个差距不会缩小。
Details
详情----------Details----------
shrinkageFun function will read in a GenomicRanges object which represent the gaps, and return a function which works for another GenomicRanges object, to shrink that object based on previously specified gaps shrinking information. You could use this function to treat multiple tracks(e.g. GRanges) to make sure
shrinkageFun函数将读取在GenomicRanges对象代表差距,并返回一个函数工作,另一GenomicRanges对象,根据先前指定的缩小信息差距缩小,对象。您可以使用此函数来处理多个音轨(例如,格朗),以确保
值----------Value----------
A shrinkage function which could shrink a GenomicRanges
一个收缩功能,可以缩小1 GenomicRanges
作者(S)----------Author(s)----------
Tengfei Yin
举例----------Examples----------
library(GenomicRanges)
gr1 <- GRanges("chr1", IRanges(start = c(100, 300, 600),
end = c(200, 400, 800)))
shrink.fun1 <- shrinkageFun(gaps(gr1), max.gap = maxGap(gaps(gr1), 0.15))
shrink.fun2 <- shrinkageFun(gaps(gr1), max.gap = 0)
shrink.fun1(gr1)
shrink.fun2(gr1)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|