Learn R Programming

SNPhood (version 1.2.3)

renameDatasets: Rename datasets.

Description

renameDatasets renames datasets from a SNPhood object.

Usage

renameDatasets(SNPhood.o, newDatasetsMapping, verbose = TRUE)

Arguments

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

See Also

renameBins, renameReadGroups, renameRegions

Examples

Run this code
data(SNPhood.o, package="SNPhood")
mapping = list("Individual1", "Individual2")
names(mapping) = annotationDatasets(SNPhood.o)
SNPhood_mod.o = renameDatasets(SNPhood.o, mapping)

Run the code above in your browser using DataLab