deleteReadGroups: Delete a particular set of read groups.

Description Usage Arguments Value See Also Examples

View source: R/core.R

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

1

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

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

SNPhood documentation built on Nov. 8, 2020, 6:22 p.m.