loopWidth {diffloop} | R Documentation

## Loop widths

### Description

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

### Usage

    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

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

[Package diffloop version 1.20.0 Index]