Crop genetic sequences with a set of primers

refdb_clean_seq_crop_primers(
  x,
  primer_forward,
  primer_reverse,
  max_error_in = 0.1,
  max_error_out = 0.1,
  include_primers = TRUE
)

Arguments

x

a reference database with a defined sequence field.

primer_forward

primer forward.

primer_reverse

primer reverse.

max_error_in, max_error_out

maximum error for a match (frequency based on primer length).

include_primers

a logical indicating whether the detected primers are included in the cropped sequences.

Value

A reference database.