convert_counts_matrix: Convert the counts matrix class in the given CDS.

View source: R/matrix.R

convert_counts_matrixR Documentation

Convert the counts matrix class in the given CDS.

Description

Converts the counts matrix that is in the given CDS to the matrix_class specified in the matrix_control list.

Usage

convert_counts_matrix(cds, matrix_control = list())

Arguments

cds

cell_data_set The cell_data_set that has the counts matrix to be converted.

matrix_control

list A list of matrix control values used to convert the counts matrix. If the counts matrix in the cds is the same as the desired counts matrix, it is not altered. matrix_control is required.

Value

cell_data_set The cell_data_set with the converted counts matrix.

Examples

   cds <- load_a549()
   str(counts(cds))
   cds <- convert_counts_matrix(cds, matrix_control=list(matrix_class='BPCells'))
   str(counts(cds))


cole-trapnell-lab/monocle3 documentation built on June 11, 2025, 11:22 p.m.