updateLDGroups {diffloop} | R Documentation |
updateLDGroups
changes the groups
column in colData
for
a loops
object
updateLDGroups(dlo, groups) ## S4 method for signature 'loops' updateLDGroups(dlo, groups)
dlo |
A loops object |
groups |
A character vector. Lists the groups each sample belongs in |
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
!
A loops object with new groups in colData
# 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)