intrachromosomal {diffloop} | R Documentation

## Loops within chromosomes

### Description

`intrachromosomal` restricts interactions to those where anchors are observed on the same chromosomes

### Usage

    intrachromosomal(dlo)

    ## S4 method for signature 'loops'
    intrachromosomal(dlo)

### Arguments

`dlo` | A loops object

### Details

This function subsets the `loops` object into only those interactions that have both anchors on the same chromosome

### Value

A loops object where all loops are on the same chromosome.

### Examples

    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)

[Package diffloop version 1.16.0 Index]