# NOT RUN {
# NOTE: Requires the edgeR package
# Simulate some data
counts <- trunc(matrix(runif(6000, min=0, max=2000), ncol=6))
geneLength <- rowMeans(counts)
# TMM normalized Log2FPKM
Log2FPKM <- convertCounts(counts,
unit = "fpkm",
geneLength = geneLength,
log = TRUE,
normalize = "tmm")
# Non-normalized CPM (not logged)
RawCPM <- convertCounts(counts,
unit = "CPM",
log = FALSE,
normalize = "none")
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab