aggregate_by_cell_bin: Aggregate count CDS by groups of cells

Description Usage Arguments Details Value Examples

View source: R/aggregate.R

Description

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

Usage

1
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

1
2
3
4
  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")

cicero documentation built on Dec. 7, 2018, 6 p.m.