Aan de slagGa gratis aan de slag

Common sequence manipulation functions

So far, you've learned the the most common sequence manipulation functions:

reverse()
complement()
reverseComplement()
translate()

In real life, you can manipulate really large sequences using these functions.

However, to see the value and the results of these functions in this exercise, you will use a small subset. The object zikv, which you have previously subsetted from the Zika genome, has only 30 bases.

Deze oefening maakt deel uit van de cursus

Introduction to Bioconductor in R

Cursus bekijken

Oefeninstructies

Test the functions using zikv:

  • Reverse the sequence.
  • Complement of the sequence.
  • Reverse complement the sequence.
  • Translate the sequence.

Praktische interactieve oefening

Probeer deze oefening eens door deze voorbeeldcode in te vullen.

# Reverse the zikv sequence
reverse(___)

# Complement the zikv sequence
___

# Reverse complement the zikv sequence
___

# Translate the zikv sequence
___
Code bewerken en uitvoeren