Learn R Programming

diffloop (version 1.0.2)

loopWidth: 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)

## S3 method for class 'loops': loopWidth(dlo)

Arguments

dlo
A loops object

Value

  • An integer vector

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.

Examples

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

Run the code above in your browser using DataLab