mcesApply {monocle} | R Documentation

## Multicore apply-like function for CellDataSet

### 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

    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, ...))

[Package monocle version 2.15.0 Index]