deleteReadGroups {SNPhood} | R Documentation

## Delete a particular set of read groups.

### Description

`deleteReadGroups` deletes a particular set of read groups from a SNPhood object. Removal is irreversible. It is therefore recommended to save the resulting `SNPhood` object with a new name.

### Usage

    deleteReadGroups(SNPhood.o, readGroups = NULL, verbose = TRUE)

### Arguments

`SNPhood.o` | Object of class `SNPhood`
`readGroups` | Character or NULL. Default NULL. Read groups that should be plotted, specified by their name as obtained by the function `annotationReadGroups`). If set to NULL, all read groups 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 read counts across read groups (both for the slots readCountsUnbinned and readCountsBinned) replaced by their respective relative fractions. Otherwise identical to the input `SNPhood` object.

### See Also

`deleteDatasets`, `deleteRegions`

### Examples

    data(SNPhood.o, package="SNPhood")
    SNPhood_allelicFractions.o = deleteReadGroups(SNPhood.o, "ambiguous")

[Package SNPhood version 1.12.0 Index]