Aan de slagGa gratis aan de slag

Searching for a pattern

Let's find some occurrences of a pattern in the zikaVirus set using vmatchPattern(). Then, let's try the same pattern search using matchPattern() with a single sequence, zikv.

# For Sets
vmatchPattern(pattern = "ACATGGGCCTACCATGGGAG", 
              subject = zikaVirus, max.mismatch = 1)
# For single sequences
matchPattern(pattern = "ACATGGGCCTACCATGGGAG", 
              subject = zikv, max.mismatch = 1)

Both functions should find the same number of occurrences, but you will notice a different output. How many matches do we get when running each pattern search individually?

Deze oefening maakt deel uit van de cursus

Introduction to Bioconductor in R

Cursus bekijken

Praktische interactieve oefening

Zet theorie om in actie met een van onze interactieve oefeningen.

Begin met trainen