loopWidth: Loop widths

Description Usage Arguments Details Value Examples

Description

loopWidth returns the width of a loop, which is defined as the distance between the anchors containing a loop

Usage

1
2
3
4
loopWidth(dlo)

## S4 method for signature 'loops'
loopWidth(dlo)

Arguments

dlo

A loops object

Details

This function returns a positive integer value of the number of basepairs that separate two loops. If they are on separate chromosomes, it still returns a value, but it will be non-sensical, so consider subsetting to only intrachromosomal loops. Also, self-loops will return a postive number that is the inter-anchor width. These loops should be handled using the removeSelfLoops() function.

Value

An integer vector

Examples

1
2
3
4
# Return the width for loops 
rda<-paste(system.file('rda',package='diffloop'),'loops.small.rda',sep='/')
load(rda)
w <- loopWidth(loops.small)

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