aggregate_nearby_peaks: Make an aggregate count cds by collapsing nearby peaks

Description Usage Arguments Details Value Examples

View source: R/aggregate.R

Description

Make an aggregate count cds by collapsing nearby peaks

Usage

1
aggregate_nearby_peaks(cds, distance = 1000)

Arguments

cds

A CellDataSet (CDS) object. For example, output of make_atac_cds

distance

The distance within which peaks should be collapsed

Details

This function takes an input CDS object and collapses features within a given distance by summing the values for the collapsed features. Ranges of features are determined by their feature name, so the feature names must be in the form "chr1:1039013-2309023".

Value

A CDS object with aggregated peaks.

Examples

1
2
3
  data("cicero_data")
  input_cds <- make_atac_cds(cicero_data, binarize = TRUE)
  agg_cds <- aggregate_nearby_peaks(input_cds, distance = 10000)

cicero documentation built on Dec. 10, 2020, 2 a.m.