Skip to contents
0.16.6 documentation
Site guide · find your task

3.3 Features, primers and restriction

On this page

Search known DNA for primers, restriction sites and common features, then choose a display. Computational matches and experimental validation are different.

Prepare this page

In a fresh R session, run the code below, then follow this page in order. Colours and layout are optional display choices; inputs select only the fields needed.

Use the bundled pUC19 DNA for exact catalogue-primer and selected restriction searches:

Code
data(plasmid_example_pUC19)
target <- setNames(plasmid_example_pUC19$sequence, plasmid_example_pUC19$accver)
primers <- find_primer_bindings(target, set = "universal")
sites <- find_restriction_sites(target, enzymes = c("EcoRI", "BamHI", "HindIII"), methylation = "none")
recognition_seq <- plasmid_example_pUC19 |>
  select(accver, length)
p_sites <- ggchord(seq_data = recognition_seq) +
  geom_seq() +
  geom_primer(data = primers, colour = "#A020F0") +
  geom_restriction_site(data = sites, colour = "#29364B") +
  coord_circular()
p_sites

Search supports circular-origin binding; set circular = FALSE for a linear sequence. The actual pUC19 hits shown here should be inspected in the returned table. Search hits are computational matches, not experimental validation. Primer "three_prime" mode finds an exact suffix, with no mismatch model; its Wallace melting-temperature estimate is a composition heuristic.

Restriction interpretation

find_restriction_sites() returns unfiltered matches and cleavage coordinates; filter_restriction_sites() selects a display set. Enzyme site counts refer to the full supplied sequence and remain stable after filtering. methylation = "auto" uses audited context only for exactly recognized bundled references; it does not claim unknown samples are unblocked. This example explicitly uses "none"; this is a search assumption, not a measurement of methylation in a physical sample. geom_restriction_site(leader = "radial") is the default route.

General feature recognition

find_common_features() supports curated exact-reference annotations, DNA and record-specific matching modes. Protein searches use standard-code six-frame translation; they do not implement splicing, alternative initiation or origin-crossing protein matches. Source genetic-code metadata does not select another translation table. For nonstandard codes use DNA matching or external code-aware analysis. Confidence is a heuristic label, not a probability. Use explicit CDS projection for known protein/genome maps.

Follow an annotated reference workflow

This short workflow uses the same source-backed plasmid as the complete map. The complete pUC19 workflow demonstrates catalogue annotations, exact reference matching, site display filtering, primer labels and feature stacking together. Changing only a sequence name does not make it a recognized reference; sequence content determines source-backed recognition. Read the result methods and methylation provenance instead of assigning reference claims to an unknown sample.

Check your result

Inspect match positions, methods and provenance. Restriction filtering is a display choice; methylation search conditions are not a measurement of an unknown sample.