- distce
A matrix of distances between spots and genes. Rows represent genes, and columns represent cells. Generally, it is a list of the output of function ProFAST::pdistance
with CAESAR co-embedding as input.
- marker.freq
A matrix where rows represent cell types, and columns represent marker genes. The values in the matrix represent the frequency or weight of each marker gene for each cell type. Generally, it is a list of the output of function markerList2mat
.
- gene.use
A character vector specifying which genes to use for the annotation. If `NULL`, all genes in `distce` will be used. Default is `NULL`.
- cal.confidence
Logical, indicating whether to calculate the confidence of the predictions. Default is `TRUE`.
- cal.proportions
Logical, indicating whether to calculate the mixing proportions of cell types for each spot. Default is `TRUE`.
- parallel
Logical, indicating whether to run the confidence calculation in parallel. Default is `TRUE`.
- ncores
The number of cores to use for parallel computation. Default is 10.
- n_fake
The number of fake (randomized) distance matrices to simulate for confidence calculation. Default is 1001.
- seed
The random seed for reproducibility. Default is 1.
- threshold
A numeric value specifying the confidence threshold below which a cell is labeled as `unassigned`. Default is 0.95.
- unassign
A character string representing the label to assign to cells below the confidence threshold. Default is `"unassigned"`.