Description Usage Arguments Value Examples
View source: R/ascend_objects.R
EMSet
generates a EMSet object for use with
the 'ascend' package. This object contains an expression matrix,
associated metadata, downstream analysis and a log documenting the actions
used to shape the data in this object.
1 2 3 4 5 |
object |
EMSet |
x |
An object containing count data. The counts can be stored in the following formats: SingleCellExperiment, "counts" in a list or SimpleList, dense matrix or sparse matrix. |
colInfo |
A data frame containing cell-related metadata. |
colData |
A data frame containing cell-related data. |
rowInfo |
A data frame containing gene-related metadata. |
rowData |
A data frame containing gene-related data. |
controls |
A named list containing control genes grouped into named control groups. |
An EMSet object.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | # Randomly generate count matrix
count_matrix <- matrix(sample(0:1, 100, replace=TRUE),10,10)
# Generate cell barcodes
cell_barcodes <- paste0("Cell-", 1:10)
gene_ids <- paste0("Gene-", 1:10)
# Add to matrix
colnames(count_matrix) <- cell_barcodes
rownames(count_matrix) <- gene_ids
# Create an EMSet
# EMSet from a list
em_set <- EMSet(list(counts = count_matrix))
# EMSet from a matrix
em_set <- EMSet(count_matrix)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.