numAnchors: Get number of anchors in each sample

Description Usage Arguments Details Value Examples

Description

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

Usage

1
2
3
4
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

1
2
3
4
# 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)

diffloop documentation built on Nov. 8, 2020, 5:48 p.m.