CommencerCommencer gratuitement

DGE Theory: Metadata

Use the information below to create a metadata data frame for the fibrosis count data called metadata with columns genotype and condition. The sample names (e.g. smoc2_fibrosis1, smoc2_fibrosis2, etc.) should be the row names of the data frame:

smoc2 metadata

Cet exercice fait partie du cours

RNA-Seq with Bioconductor in R

Afficher le cours

Instructions

  • Create a character vector called genotype for the above data using c().
  • Create a character vector called condition for the above data using c().
  • Create a data frame called smoc2_metadata using data.frame() and the genotype and condition character vectors.
  • Create a vector of sample names using c() and assign it to the row names of the data frame using rownames().

Exercice interactif pratique

Essayez cet exercice en complétant cet exemple de code.

# Create genotype vector
genotype <- c(___)

# Create condition vector
condition <- c(___)

# Create data frame
smoc2_metadata <- data.frame(___, ___)

# Assign the row names of the data frame
rownames(smoc2_metadata) <- c(___)
Modifier et exécuter le code