findEOP: Find Events Overlapping Primers.

Description Usage Arguments Value See Also Examples

View source: R/helpers_filters.R

Description

Very often alignments return deletions that are not real deletions, but rather artifact of incomplete reads eg.:

1
2
ACTGAAAAA------- <- this "deletion" should be filtered
ACTG----ACTGACTG

Usage

1
findEOP(aln, cfgT)

Arguments

aln

(data.frame) Should contain events from alignments in GRanges style with columns eg. seqnames, width, start, end.

cfgT

(data.frame) Needs columns Forward_Primer, ReversePrimer and Amplicon.

Value

(logical vector) where TRUE indicates events that are overlapping primers

See Also

findPD findLQR

Other filters: findLQR, findPD

Examples

1
2
3
4
5
6
7
file_path <- system.file("extdata", "results", "alignments",
                         "raw_events.csv", package = "amplican")
aln <- data.table::fread(file_path)
cfgT <- data.table::fread(
  system.file("extdata", "results", "config_summary.csv",
              package = "amplican"))
findEOP(aln, cfgT)

amplican documentation built on Nov. 8, 2020, 11:10 p.m.