splitSamples {diffloop} | R Documentation

## Split samples into their own loops object

### Description

`splitSamples` takes a loops object and returns a list of loops objects where each sample populates its own loops object

### Usage

    splitSamples(dlo)

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

### Arguments

`dlo` | A loops object

### Details

This function splits the colData and counts slots for each sample but makes copies of the anchors, interactions, and rowdata

### Value

A list of loops objects with one sample per index.

### Examples

    # Updating groups from all 'group1' to meaningful designations
    rda<-paste(system.file('rda',package='diffloop'),'loops.small.rda',sep='/')
    load(rda)
    split <- splitSamples(loops.small)

[Package diffloop version 1.14.0 Index]