Learn R Programming

CrispRVariants (version 1.0.2)

excludeFromBam: Removes reads from a bam file

Description

Returns a GAlignments excluding reads based on either name and/or location

Usage

excludeFromBam(bam, exclude.ranges = GRanges(), exclude.names = NA)

Arguments

bam
a GAlignments object
exclude.ranges
Regions to exclude, as GRanges.
exclude.names
A character vector of alignments names to exclude

Value

The bam minus the excluded regions