countHitsWindow(htSeqTools)
countHitsWindow()所属R语言包:htSeqTools
Compute number of hits in a moving window along the chromosome.
在沿染色体的移动窗口计算点击次数。
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Computes a smoothed number of hits along the chromosome by using moving windows of user specified size.
通过使用用户指定大小的移动窗口计算的沿染色体的命中平滑。
用法----------Usage----------
countHitsWindow(x, chrLength, windowSize = 10^4 - 1)
参数----------Arguments----------
参数:x
Object containing hits (start, end and chromosome). Currently only RangedData objects are accepted.
对象(起点,终点和染色体)含命中。目前只有RangedData对象接受。
参数:chrLength
Named vector indicating the length of each chromosome in base pairs.
名为向量表示每个染色体的碱基对的长度。
参数:windowSize
Size of the window used to smooth the hit count.
命中计数用来平滑窗口的大小。
方法----------Methods----------
x contains chromosome, start and end positions for each hit.
x包含染色体的每一击,开始和结束位置。
举例----------Examples----------
set.seed(1)
st <- round(rnorm(1000,500,100))
st[st>=10000] <- 10000
strand <- rep(c('+','-'),each=500)
space <- rep('chr1',length(st))
x <- RangedData(IRanges(st,st+38),strand=strand,space=space)
countHitsWindow(x, chrLength=c(chr1=10000), windowSize=99)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|