splitSamples: Split samples into their own loops object

Description Usage Arguments Details Value Examples

Description

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

Usage

1
2
3
4
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

1
2
3
4
# 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)

diffloop documentation built on Nov. 8, 2020, 5:48 p.m.