updateLDGroups: Update groups in colData for loops object

Description Usage Arguments Details Value Examples

Description

updateLDGroups changes the groups column in colData for a loops object

Usage

1
2
3
4
updateLDGroups(dlo, groups)

## S4 method for signature 'loops'
updateLDGroups(dlo, groups)

Arguments

dlo

A loops object

groups

A character vector. Lists the groups each sample belongs in

Details

This function updates the groups column in colData for a loops object. Make sure that the length of groups the number of samples in colData!

Value

A loops object with new groups in colData

Examples

1
2
3
4
5
# Updating groups from all 'group1' to meaningful designations
rda<-paste(system.file('rda',package='diffloop'),'loops.small.rda',sep='/')
load(rda)
celltypes <- c('naive1','naive1','primed2','primed2','jurkat3','jurkat3')
loops.small <- updateLDGroups(loops.small, celltypes)

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