mergeDGEList | R Documentation |
Merge two DGEList objects into one
mergeDGEList(firstDgeList, secondDgeList, DGEListLabels = NULL)
firstDgeList |
First |
secondDgeList |
Second |
DGEListLabels |
Labels, either The function merges two
In case |
y1 <- matrix(rnbinom(1000, mu=5, size=2), ncol=4)
genes1 <- data.frame(GeneSymbol=sprintf("Gene%d", 1:nrow(y1)))
rownames(y1) <- rownames(genes1) <- 1:nrow(y1)
anno1 <- data.frame(treatment=gl(2,2, labels=c("ctrl", "tmt")),
donor=factor(rep(c(1,2), each=2)))
d1 <- DGEList(counts=y1, genes=genes1, samples=anno1)
y2 <- matrix(rnbinom(1000, mu=5, size=2), ncol=4)
genes2 <- data.frame(GeneSymbol=sprintf("Gene%d", 1:nrow(y2)+100))
rownames(y2) <- rownames(genes1) <- 1:nrow(y2)+100
anno2 <- data.frame(treatment=gl(2,2, labels=c("ctrl", "tmt")),
sex=factor(rep(c("m", "f"), each=2)))
d2 <- DGEList(counts=y2, genes=genes2, samples=anno2)
md <- mergeDGEList(d1, d2)
md2 <- mergeDGEList(d1, d2, DGEListLabels=c("d1", "d2"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.