singlecellexperiment_to_matrix: Convert SingleCellExperiment to Matrix + annotation vector...

View source: R/data_processing.R

singlecellexperiment_to_matrixR Documentation

Convert SingleCellExperiment to Matrix + annotation vector for celltypes

Description

Convert SingleCellExperiment to Matrix + annotation vector for celltypes

Usage

singlecellexperiment_to_matrix(
  sce,
  assay_name = NULL,
  cell_type_column_name = NULL
)

Arguments

sce

SingleCellExperiment

assay_name

name of the assay that should be returned as matrix. (default: first in assay list)

cell_type_column_name

name of the column that stores the cell-type labels in the colData object of the provided SingleCellExperiment

Value

named list: ..$matrix: matrix object, ..$annotation_vector


PelzKo/immunedeconv2 documentation built on Feb. 12, 2025, 4:16 p.m.