Score a gene-expression signature
Usage
score_signature(
x,
experiment,
weights,
assay,
center = FALSE,
scale = FALSE,
na_rm = FALSE
)Arguments
- x
A
MultiAssayExperimentobject.- experiment
Optional experiment name.
- weights
Named numeric feature weights, or an unweighted character vector of feature names.
- assay
Assay name or one-based assay index.
- center, scale
Either a logical value, or a named numeric vector of training-set feature centers/scales.
TRUEestimates values from the current cohort and is therefore unsuitable for locked external validation; supply frozen training values instead.- na_rm
Remove missing values when summing scores.