test/testConvertCountsWithVector.R

#test convertCounts with vector

library(DGEobj)
library(DGE.Tools2)

#Load DGE.Tools2 sample data
rawDataPath <- paste(.libPaths()[[1]], "/DGE.Tools2/extdata", sep="")
d <- OmicsoftToDgeObj(path=rawDataPath)

counts <- getItem(d, "counts")
#get a numeric vector
c1 <- counts[,1]
class(c1)
ga <- getItem(d, "geneData")

fpkm <- convertCounts(c1, unit = "FPKM", geneLength = ga$ExonLength)
jrthompson54/DGE.Tools2 documentation built on May 12, 2021, 8:47 p.m.