qaVariants: QA Filtering of Variants

Description Usage Arguments Details Value Author(s) Examples

View source: R/qaVariants.R

Description

Filters a tally GRanges through a series of simple checks for strand and read position (read position) biases.

Usage

1
2
qaVariants(x, qa.filters = VariantQAFilters(...), ...)
VariantQAFilters(fisher.strand.p.value = 1e-4, min.mdfne = 10L)

Arguments

x

A tally GRanges as output by tallyVariants.

qa.filters

The filters used for the QA process, typically constructed with VariantQAFilters, see arguments below.

...

Arguments passed to VariantQAFilters, listed below.

fisher.strand.p.value

p-value cutoff for the Fisher's Exact Test for strand bias (+/- counts, alt vs. ref). Any variants with p-values below this cutoff are discarded.

min.mdfne

Minimum allowed median distance of alt calls from their nearest end of the read.

Details

There are currently two QA filters:

Value

For qaVariants, a tally GRanges of the variants that pass the QA checks.

For VariantQAFilters, a FilterRules object with the QA and sanity filters.

Author(s)

Michael Lawrence and Jeremiah Degenhardt

Examples

1
2
data(vignette)
qaVariants(tallies_H1993, fisher.strand.p.value = 1e-4)

VariantTools documentation built on Nov. 8, 2020, 8:03 p.m.