renameRegions {SNPhood} | R Documentation

## Rename regions.

### Description

`renameRegions` renames regions from a SNPhood object.

### Usage

    renameRegions(SNPhood.o, newRegionsMapping, verbose = TRUE)

### Arguments

`SNPhood.o` | Object of class `SNPhood`
`newRegionsMapping` | Named list. For clarity of mapping, the names of the list must be the currently defined region 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 regions being renamed

### See Also

`renameBins`, `renameDatasets`, `renameReadGroups`

### Examples

    data(SNPhood.o, package="SNPhood")
    mapping = as.list(paste0(annotationRegions(SNPhood.o),".newName"))
    names(mapping) = annotationRegions(SNPhood.o)
    SNPhood_mod.o = renameRegions(SNPhood.o, mapping)

[Package SNPhood version 1.10.0 Index]