calc_scaling_vector | R Documentation |
Each scaling factor has a default matrix it will try to use (counts or TPM). If the required matrix is not available, the other one is used and a warning is given.
calc_scaling_vector(
data,
scaling_factor,
custom_scaling_vector,
scaling_factor_single_cell,
BPPARAM,
run_parallel
)
data |
dataset object |
scaling_factor |
name of scaling factor; possible are: |
custom_scaling_vector |
named vector with custom scaling values for cell-types. Cell-types that do not occur in this vector but are present in the dataset will be set to 1 |
scaling_factor_single_cell |
boolean: decide if a scaling value for each single cell is calculated (default) or the median of all scaling values for each cell type is calculated |
BPPARAM |
BiocParallel::bpparam() by default; if specific number of threads x want to be used, insert: BiocParallel::MulticoreParam(workers = x) |
run_parallel |
boolean, decide if multi-threaded calculation will be run. FALSE by default |
a named vector with a scaling value for each cell in the dataset
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.