slidingWindowTest: Combined association test for all loops in a defined region

Description Usage Arguments Details Value Examples

Description

slidingWindowTest takes a loops object and integer values of the association window and the distance between consecutive windows.

Usage

1
2
3
4
slidingWindowTest(x, window, step)

## S4 method for signature 'loops,numeric,numeric'
slidingWindowTest(x, window, step)

Arguments

x

A loops object with PValue column (from association testing)

window

The length a window will be for combined association

step

The size that the window will shift for each association

Details

This function returns a data.frame sorted by FDR of each region. The engine loops over each chromosome and defines the first window at the left-most loop and slides the window right until no more loops are present in x Each region is determined from a sliding window of fixed length. The combined significance measure per feature is computed via the Simes method for intrachromosomal loops where at least one anchor from the loop overlaps with the region. Requires PValue column in the rowData slot.

Value

A data.frame sorted by FDR

Examples

1
2
3
4
5
# Sliding window test 100kb at a time between naive and jurkat
rda<-paste(system.file('rda',package='diffloop'),'loops.small.rda',sep='/')
load(rda)
# assoc_jn <- loopAssoc(loops.small, coef = 2)
# sw_jn <- slidingWindowTest(assoc_jn, 100000, 100000)

aryeelab/diffloop documentation built on May 12, 2019, 3:42 a.m.