renameReadGroups {SNPhood} | R Documentation

## Rename read groups.

### Description

`renameReadGroups` renames a set of read groups from a SNPhood object.

### Usage

    renameReadGroups(SNPhood.o, newReadGroupsMapping, verbose = TRUE)

### Arguments

`SNPhood.o` | Object of class `SNPhood`
`newReadGroupsMapping` | Named list. Named list. For clarity of mapping, the names of the list must be the currently defined read group names, and the values of each element the corresponding new ones.
`verbose` | Logical(1). Default TRUE. Should the verbose mode (i.e., diagnostic messages during execution of the script) be enabled?

### Value

an object of class `SNPhood` with the requested read groups being renamed.

### See Also

`renameBins`, `renameDatasets`, `renameRegions`

### Examples

    data(SNPhood.o, package="SNPhood")
    mapping = list("a", "b", "c")
    names(mapping) = annotationReadGroups(SNPhood.o)
    SNPhood_mod.o = renameReadGroups (SNPhood.o, mapping)

[Package SNPhood version 1.16.0 Index]