Learn R Programming

diffloop (version 1.0.2)

splitSamples: 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)

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

Arguments

dlo
A loops object

Value

  • A list of loops objects w

Details

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

Examples

Run this code
# 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)

Run the code above in your browser using DataLab