Computes metabolic fluxes for single-cell RNA-seq data using community modeling.
Usage
compute_sc_flux(
num_cell,
fraction,
fluxscore,
medium,
parallel = TRUE,
n_cores = NULL,
use_cpp = TRUE
)Arguments
- num_cell
Integer. Number of cell types or clusters.
- fraction
Numeric vector. Fraction of each cell type (must sum to 1).
- fluxscore
Matrix. Metabolic reaction activity scores (MRAS) from bootstrap sampling.
- medium
Data frame. Medium profile specifying available nutrients.
- parallel
Logical. Use parallel computing? (default: TRUE)
- n_cores
Integer. Number of CPU cores (default: NULL = auto-detect, max 8)
- use_cpp
Logical. Use C++ optimization? (default: TRUE)