Learn R Programming

diffloop (version 1.0.2)

removeSelfLoops: Remove self loops

Description

removeSelfLoops removes instances where a loop is observed between the same anchor

Usage

removeSelfLoops(dlo)

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

Arguments

dlo
A loops object

Value

  • A loops object

Details

This function removes loops from the interactions slot that reference the same index of the anchors slot.

Examples

Run this code
rda<-paste(system.file('rda',package='diffloop'),'loops.small.rda',sep='/')
load(rda)
jpn_unique <- removeSelfLoops(loops.small)

Run the code above in your browser using DataLab