View source: R/data_processing.R
convert_to_matrix | R Documentation |
Converts the object into a matrix
convert_to_matrix(
object,
cell_type_annotations,
cell_type_column_name = NULL,
assay_name = NULL
)
object |
An input matrix, data frame, expression set, etc. |
cell_type_annotations |
A vector of the cell type annotations. Has to be in the same order as the samples in object. If not used (for example for bulk data), just supply anything, like a string. |
cell_type_column_name |
Name of the column in (Anndata: obs, SingleCellExperiment: colData), that contains the cell-type labels. Is only used if no cell_type_annotations vector is provided. |
assay_name |
Name of the assay/layer that should be used to extract the matrix |
The same object, but of type matrix
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.