1. Learn
  2. /
  3. Courses
  4. /
  5. Introduction to Bioconductor in R

Exercise

Interacting with IRanges

You can use the IRanges() function to create a single sequence. You can also provide vectors to IRanges() to create multiple sequence ranges at the same time. This is both fascinating and useful! The creation of objects seq_1 and seq_2 are examples of this.

For this exercise, check the width of each of the sequences provided here, using width() and lengths(). Notice the difference between the two types of outputs.

Remember that width = end - start + 1.

Instructions 1/2

undefined XP
  • 1
    • Find the widths of seq_1 and seq_2 using width().
  • 2
    • Find the widths of seq_1 and seq_2 using lengths().