loopMetrics {diffloop} | R Documentation

## Types of loops

### Description

`loopMetrics` counts number of loops for each sample and returns whether they are single, self, unique, or none

### Usage

    loopMetrics(dlo)

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

### Arguments

`dlo` | A loops object

### Details

This function shows the number of loops for each sample based on four types. Single refers to having only one anchor for a the loop whereas none has no unique anchors. If using the `loopsMake` pipeline, only self and unique loops will be observed when running this function

### Value

A data.frame

### Examples

    # Return loop metrics for number of each type for each sample
    rda<-paste(system.file('rda',package='diffloop'),'loops.small.rda',sep='/')
    load(rda)
    loopMetrics(loops.small)

[Package diffloop version 1.12.0 Index]