loopWidth {diffloop} | R Documentation |
loopWidth
returns the width of a loop, which is defined as the
distance between the anchors containing a loop
loopWidth(dlo) ## S4 method for signature 'loops' loopWidth(dlo)
dlo |
A loops object |
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.
An integer vector
# Return the width for loops rda<-paste(system.file('rda',package='diffloop'),'loops.small.rda',sep='/') load(rda) w <- loopWidth(loops.small)