Learn R Programming

diffloop (version 1.0.2)

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

## S3 method for class 'loops': loopMetrics(dlo)

Arguments

dlo
A loops object

Value

  • A data.frame

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

Examples

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

Run the code above in your browser using DataLab