renameDatasets {SNPhood} | R Documentation |
renameDatasets
renames datasets from a SNPhood object.
renameDatasets(SNPhood.o, newDatasetsMapping, verbose = TRUE)
SNPhood.o |
Object of class |
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? |
an object of class SNPhood
with the requested datasets being renamed.
renameBins
, renameReadGroups
, renameRegions
data(SNPhood.o, package="SNPhood") mapping = list("Individual1", "Individual2") names(mapping) = annotationDatasets(SNPhood.o) SNPhood_mod.o = renameDatasets(SNPhood.o, mapping)