ComeçarComece de graça

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").

Este exercício faz parte do curso

Introduction to Bioconductor in R

Ver curso

Exercício interativo prático

Experimente este exercício completando este código de exemplo.

# Investigate the a_genome using show()
___
Editar e executar o código