Learn R Programming

diffloop (version 1.0.2)

interchromosomal: Loops between chromosomes

Description

interchromosomal restricts loops to those where anchors are observed on different chromosomes

Usage

interchromosomal(dlo)

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

Arguments

dlo
A loops object

Value

  • A loops object with all loops on different chromosomes

Details

This function subsets the loops object into only those loops that have anchors on different chromosomes

Examples

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

# Compute number of interactions on same chromosome
dim(intrachromosomal(loops.small))
samechromo <- intrachromosomal(loops.small)

# Compute number of interactions on same chromosome
# dim(interchromosomal(loops.small))
# This will throw and error since the toy only has intrachromosomal loops

Run the code above in your browser using DataLab