Description Usage Arguments Author(s) Examples
getexpr help get long data frame from a gene expression matrix.
1 2 3 4 5 |
exprs.matirx |
genes expression matrix or a matrix with individual colnames and marker rownames. |
design |
design object |
select |
selected markers or genes |
contrast.col |
the colnames of the contrast |
contrast.list |
the elements of a contrast like Np and N0. If NULL,use all the contrast element. |
Weibin Huang
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | data(expr)
exprs.matirx <- expr[,1:(ncol(expr)-3)]
design=data.frame(condition=Fastextra(colnames(exprs.matirx),"_",2))
select = c("gene1","gene2","gene3","gene4","gene5","gene6")
contrast.col = "condition"
contrast.list = as.character(unique(design$condition))
df1 <- getexpr(exprs.matirx,
design,
select,
contrast.col,
contrast.list=NULL)
df2 <- getexpr(exprs.matirx,
design,
select,
contrast.col,
contrast.list)
df3 <- getexpr(exprs.matirx,
design,
select,
contrast.col,
contrast.list=contrast.list[1:2])
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.