mcesApply: Multicore apply-like function for CellDataSet

Description Usage Arguments Value

View source: R/utils.R

Description

mcesApply computes the row-wise or column-wise results of FUN, just like esApply. Variables in pData from X are available in FUN.

Usage

1
2
mcesApply(X, MARGIN, FUN, required_packages, cores = 1,
  convert_to_dense = TRUE, ...)

Arguments

X

a CellDataSet object

MARGIN

The margin to apply to, either 1 for rows (samples) or 2 for columns (features)

FUN

Any function

required_packages

A list of packages FUN will need. Failing to provide packages needed by FUN will generate errors in worker threads.

cores

The number of cores to use for evaluation

convert_to_dense

Whether to force conversion a sparse matrix to a dense one before calling FUN

...

Additional parameters for FUN

Value

The result of with(pData(X) apply(exprs(X)), MARGIN, FUN, ...))


monocle documentation built on Nov. 8, 2020, 5:06 p.m.