
callVariants
, so
these functions are for when more control is desired.
postFilterVariants(x, post.filters = VariantPostFilters(...), ...)
VariantPostFilters(max.nbor.count = 0.1, whitelist = NULL)
GRanges
containing called variants, as output by
callVariants
.
VariantPostFilters
, listed below.
postFilterVariants
, a tally GRanges
of the variants that
pass the filters.For VariantPostFilters
, a FilterRules
object with the filters.
p53 <- gmapR:::exonsOnTP53Genome("TP53")
bams <- LungCancerLines::LungCancerBamFiles()
tally.param <- TallyVariantsParam(gmapR::TP53Genome(),
high_base_quality = 23L,
which = range(p53))
# post-filters are not enabled by default during calling
called.variants <- callVariants(bams[[1]], tally.param)
# but can be applied at a later time...
postFilterVariants(called.variants, max.nbor.count = 0.15)
# or enable during calling
called.variants <- callVariants(bams[[1]], tally.param,
post.filters = VariantPostFilters())
Run the code above in your browser using DataLab