Description Usage Arguments Value Examples
View source: R/regenrichClasses.R
DeaSet object creator
1 2 3 4 5 6 7 |
assayRaw |
A matrix of gene expression data. This can be the same
as the matrix-like element in |
rowData |
A DataFrame object describing the rows. |
assays |
A list or SimpleList of matrix-like element,
or a matrix-like object. The matrix-like element can be the same
as |
colData |
A DataFrame describing the sample information. |
metadata |
An optional list of arbitrary content describing the overall experiment. |
A DeaSet object.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | # Empty DeaSet object
newDeaSet()
# 100 * 6 DeaSet object
nrows = 100
ncols = 6
counts = matrix(rnbinom(nrows * ncols, size = 2, mu = 500),
nrow = nrows)
assays = SimpleList(counts=counts)
colData = DataFrame(Condition = rep(c("treatment", "ctrl"), 3),
row.names=LETTERS[1:6])
geneNames = sprintf("G%03s", seq(nrows))
elementMetadata = DataFrame(gene = geneNames,
p = numeric(nrows),
logFC = numeric(nrows))
newDeaSet(assayRaw = counts,
rowData = elementMetadata,
assays = SimpleList(assayData = counts),
colData = colData)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.