Normalizing counts with DESeq2
We have created the DESeq2 object and now wish to perform quality control on our samples. Therefore, we need to generate the normalized counts (normalized for library size, which is the total number of gene counts per sample, while accounting for library composition). To obtain the normalized counts, use the DESeq2 object and generate the normalized counts matrix.
This exercise is part of the course
RNA-Seq with Bioconductor in R
Exercise instructions
Estimate the size factors for the smoc2 count data using the
estimateSizeFactors()
function and save back to thedds_smoc2
objectExtract the normalized count values from
dds_smoc2
and save assmoc2_normalized_counts
using thecounts()
function.
Hands-on interactive exercise
Have a go at this exercise by completing this sample code.
# Determine the size factors to use for normalization
dds_smoc2 <- ___(___)
# Extract the normalized counts
smoc2_normalized_counts <- ___(___, ___)