Run soft-gating pipeline end-to-end
Usage
run_soft_gating(
spe,
lineage_table,
assay_name = "exprs",
unknown_thresh = 0.4,
store = TRUE
)Examples
data("cytoGateR_example", package = "cytoGateR")
image_ids <- SummarizedExperiment::colData(cytoGateR_example)$image_name
spe <- cytoGateR_example[, image_ids == image_ids[1L]]
lineage_table <- data.frame(
cell_type = c("Tcell", "Bcell"),
pos_markers = I(list("CD3e", "CD20")),
neg_markers = I(list("CD20", "CD3e"))
)
soft_result <- run_soft_gating(spe, lineage_table)
head(soft_result$labels)
#> [1] "Tcell" "Bcell" "Unknown" "Unknown" "Unknown" "Tcell"
