updateLDGroups {diffloop} | R Documentation

## Update groups in colData for loops object

### Description

`updateLDGroups` changes the `groups` column in `colData` for a `loops` object

### Usage

    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

    # 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)

[Package diffloop version 1.22.0 Index]