View source: R/cell_data_set.R
new_cell_data_set | R Documentation |
Create a new cell_data_set object.
new_cell_data_set(expression_data, cell_metadata = NULL, gene_metadata = NULL)
expression_data |
expression data matrix for an experiment, can be a sparseMatrix. |
cell_metadata |
data frame containing attributes of individual cells,
where |
gene_metadata |
data frame containing attributes of features
(e.g. genes), where
|
a new cell_data_set object
small_a549_colData_df <- readRDS(system.file("extdata",
"small_a549_dex_pdata.rda",
package = "monocle3"))
small_a549_rowData_df <- readRDS(system.file("extdata",
"small_a549_dex_fdata.rda",
package = "monocle3"))
small_a549_exprs <- readRDS(system.file("extdata",
"small_a549_dex_exprs.rda",
package = "monocle3"))
small_a549_exprs <- small_a549_exprs[,row.names(small_a549_colData_df)]
cds <- new_cell_data_set(expression_data = small_a549_exprs,
cell_metadata = small_a549_colData_df,
gene_metadata = small_a549_rowData_df)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.