Aan de slagGa gratis aan de slag

Interaction with classes

Let's say we have an object called a_genome from class BSgenome. With a_genome, you can ask questions like these:

# What is a_genome's main class?
class(a_genome)  # "BSgenome"

# What is a_genome's other classes?
is(a_genome)  # "BSgenome", "Annotated"

# Is a_genome an S4 representation?
isS4(a_genome)  # TRUE

If you want to find out more about the a_genome object, you can use the accessor show(a_genome) or use other specific accessors from the list of .S4methods(class = "BSgenome").

Deze oefening maakt deel uit van de cursus

Introduction to Bioconductor in R

Cursus bekijken

Praktische interactieve oefening

Probeer deze oefening eens door deze voorbeeldcode in te vullen.

# Investigate the a_genome using show()
___
Code bewerken en uitvoeren