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

Description Usage Arguments Details Value Examples

Description

featureTest takes a loops and genomic coordinates of regions and computes combined significance metrics for each region using the Simes procedure

Usage

1
2
3
4
featureTest(x, features)

## S4 method for signature 'loops,GRanges'
featureTest(x, features)

Arguments

x

A loops object

features

A GRanges object defining regions for a combined test

Details

This function returns a data.frame sorted by FDR of each region. Assumes the region name is specified in the GRanges object with id column. Each feature is a one row in the GRanges object. 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 of interest.

Value

A data.frame sorted by FDR

Examples

1
2
3
4
5
6
# Human genes chromosome 1 regional association
rda<-paste(system.file('rda',package='diffloop'),'loops.small.rda',sep='/')
load(rda)
# assoc <- loopAssoc(loops.small, coef = 2)
# Gene based association
# sw_jn <- featureTest(assoc, getHumanGenes(c('1')))

diffloop documentation built on Nov. 8, 2020, 5:48 p.m.