topLoops: Grab top loops

Description Usage Arguments Details Value Examples

Description

topLoops takes a loops object and performs basic filtering for FDR or PValue

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
topLoops(dlo, FDR, PValue)

## S4 method for signature 'loops,numeric,numeric'
topLoops(dlo, FDR, PValue)

## S4 method for signature 'loops,numeric,missing'
topLoops(dlo, FDR, PValue)

## S4 method for signature 'loops,missing,numeric'
topLoops(dlo, FDR, PValue)

Arguments

dlo

A loops object

FDR

Maximum threshold for False Discovery Rate; default = 1

PValue

Maximum threshold for P-value; default = 1

Details

This function returns a subsetted loops object where all loops meet the significance threshold specificed by the parameters in the function call.

Value

A loops object subsetted by specified parameters

Examples

1
2
3
4
5
6
# Differential loop calling between naive and primed
rda<-paste(system.file('rda',package='diffloop'),'loops.small.rda',sep='/')
load(rda)
np <- loops.small[,1:4]
assoc_np <- quickAssoc(np)
top_np <- topLoops(assoc_np, FDR = 0.3)

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