excludeFromBam {CrispRVariants} | R Documentation

## 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

### Author(s)

Helen Lindsay

[Package CrispRVariants version 1.14.0 Index]