Calculate wedge features from a kernel
Usage
calculateWedges(
kernel,
unifKernel = NULL,
cells,
Dcell = NULL,
bundle = TRUE,
patient_names = NULL,
zero_threshold = 1
)Arguments
- kernel
Kernel array returned by
compute_kernel().- unifKernel
Optional normalized baseline kernel.
- cells
Character vector of cell-type names.
- Dcell
Patient-by-cell-type abundance matrix, used to weight raw (unnormalized) scores. Ignored when
unifKernelis supplied.- bundle
Logical; if
TRUE, combine directionally equivalent wedges.- patient_names
Optional character vector of patient labels, matching the patient order in
kernel. Defaults toPatient_1,Patient_2, ... when omitted.- zero_threshold
Drop a wedge once its fraction of zero-valued patients reaches this threshold. Default
1only drops wedges that are zero for every patient (the original behavior); lower it (e.g.0.9) to also drop merely zero-inflated wedges.