deleteDatasets {SNPhood} | R Documentation

## Delete a particular set of datasets from a SNPhood object.

### Description

`deleteDatasets` deletes a particular set of datasets from a `SNPhood` object. Removal is irreversible. It is therefore recommended to save the resulting `SNPhood` object with a new name because the deleted datasets cannot be recovered.

### Usage

    deleteDatasets(SNPhood.o, datasets = NULL, verbose = TRUE)

### Arguments

`SNPhood.o` | Object of class `SNPhood`
`datasets` | Numeric or Character or NULL. Default NULL. Datasets that should be used for plotting, either specified as integer (such as 1, value must be between 1 and the total number of datasets as defined in the object) or their annotation (name must appear in the dataset names as obtained via the function `annotationDatasets`). If set to NULL, all datasets will be considered.
`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 removed from all slots.

### See Also

`deleteRegions`, `deleteReadGroups`

### Examples

    data(SNPhood.o, package="SNPhood")
    SNPhood_mod.o = deleteDatasets(SNPhood.o, c(1,2))

[Package SNPhood version 1.17.0 Index]