numAnchors {diffloop} | R Documentation

## Get number of anchors in each sample

### Description

`numAnchors` takes a `loops` object and a summarizes the number of anchors that support all the interactions (count >= 1) in the object

### Usage

    numAnchors(x)

    ## S4 method for signature 'loops'
    numAnchors(x)

### Arguments

`x` | A loops object to be summarized

### Details

This function returns a data.frame where the column names specify the sample in the original `loops` object and the only row shows the number of anchors used to support that sample

### Value

A data.frame of each sample and the number of anchors

### Examples

    # Show number of anchors each sample is supported by
    rda<-paste(system.file('rda',package='diffloop'),'loops.small.rda',sep='/')
    load(rda)
    numAnchors(loops.small)

[Package diffloop version 1.8.0 Index]