aggregate_rows_monocle3: Aggregate rows: monocle3

View source: R/aggregate_rows_monocle3.R

aggregate_rows_monocle3R Documentation

Aggregate rows: monocle3

Description

Aggregate rows: monocle3

Usage

aggregate_rows_monocle3(
  x,
  groupings = NULL,
  form = NULL,
  fun = "sum",
  na.action = stats::na.omit
)

Arguments

x

Input matrix.

groupings

Gene groups of the same length as nrow(X).

form

Formula.

fun

Aggregation function.

na.action

Na action.

Value

Aggregated matrix.

Source

X <- Matrix::rsparsematrix(nrow = 1000, ncol = 2000, density = .10) groupings <- rep(c("A","B"),nrow(X)/2) X2 <- orthogene:::aggregate_rows_monocle3(x = X, groupings=groupings)


neurogenomics/orthogene documentation built on Jan. 30, 2024, 4:44 a.m.