Learn R Programming

diffloop (version 1.0.2)

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

## S3 method for class 'loops': numAnchors(x)

Arguments

x
A loops object to be summarized

Value

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

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

Examples

Run this code
# 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)

Run the code above in your browser using DataLab