aggregateName: Aggregate Interaction Data

View source: R/utils.R

aggregateNameR Documentation

Aggregate Interaction Data

Description

Aggregate interaction data by row or column names.

Usage

aggregateName(
  data,
  aggregate = c("row", "column"),
  counted = FALSE,
  cutoff = 0,
  split.by = "_|[|]"
)

Arguments

data

Interaction data with rows of cell-cell paris and columns of gene-gene pairs.

aggregate

Type of aggregation used:

  • row, using rownames (Default).

  • column, using colnames.

counted

Binarize data to aggregate. Default is FALSE.

cutoff

Cutoff for interactions. Default is 0. Only values that are above this threshold will be considered.

split.by

interaction pairs. Default is "_" or "|".

Value

Returns the aggregated matrix.


stevexniu/scMatchmaker documentation built on June 2, 2022, 12:35 p.m.