aggregate_by_cell_bin: Aggregate count CDS by groups of cells

View source: R/aggregate.R

aggregate_by_cell_binR Documentation

Aggregate count CDS by groups of cells

Description

Aggregates a CDS based on an indicator column in the pData table

Usage

aggregate_by_cell_bin(cds, group_col)

Arguments

cds

A CDS object to be aggregated

group_col

The name of the column in the pData table that indicates the cells assignment to its aggregate bin.

Details

This function takes an input CDS object and collapses cells based on a column in the pData table by summing the values within the cell group.

Value

A count cds aggregated by group_col

Examples

  data("cicero_data")
  #input_cds <- make_atac_cds(cicero_data, binarize = TRUE)
  #pData(input_cds)$cell_subtype <- rep(1:10, times=20)
  #binned_input_lin <-aggregate_by_cell_bin(input_cds, "cell_subtype")


cole-trapnell-lab/cicero documentation built on March 13, 2023, 6:02 p.m.