aggregate_cell_types: Aggregates the pixel occurrences for each cell type in the...

View source: R/CSIDE_utils.R

aggregate_cell_typesR Documentation

Aggregates the pixel occurrences for each cell type in the RCTD object

Description

The difference with count_cell_types is that this function does not filter out pixels based on total cell type weight, as occurs in the CSIDE algorithm.

Usage

aggregate_cell_types(myRCTD, barcodes, doublet_mode = T)

Arguments

barcodes

the barcodes, or pixel names, of the SpatialRNA object to be used when counting cell types.

doublet_mode

(default TRUE) if TRUE, uses RCTD doublet mode weights. Otherwise, uses RCTD full mode weights

RCTD

an RCTD object with annotated cell types e.g. from the run.RCTD function.

Value

a named vector of number of pixel occurrences for each cell type


dmcable/RCTD documentation built on Feb. 24, 2024, 11:03 p.m.