This S4 class contains the expression data, it can be a MAList or DGEList. Important: Rownames are going to be used as gene identifiers, make sure that this IDs are the same used in your gene sets.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
## Lets create a ExprData object from counts data (DGEList). rnaData <- matrix(rnbinom(10000, mu = 5, size = 2), ncol = 4) rownames(rnaData) <- 1:nrow(rnaData) # It must have rownames (gene names). ## Now we can use rnaExprData as an ExprData object. ## Not run: rnaExprData <- DGEList(counts = rnaData) ## End(Not run) ## Lets create a ExprData object from micro array data (MAList). maData <- matrix(rnorm(10000), ncol = 4) rownames(maData) <- 1:nrow(maData) # It must have rownames (gene names). ## Now we can use maExprData as an ExprData object. maExprData <- new("MAList", list(M = maData))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.