| .ggmlr_largest_gene | R Documentation |
For every cell, finds the gene with the largest value and that value's share
of the cell's column sum — Seurat's largest_gene /
percent.Largest.Gene QC metric (qlcMatrix::colMax(counts,
which = TRUE)). Runs on the CPU directly over the sparse dgCMatrix
CSC slots (@x, @i, @p) without ever densifying, so it
scales to the full counts matrix. This is a memory-bound O(nnz) column
argmax/max with no arithmetic to accelerate, so — like ScaleData and the
UMAP layout — there is nothing for the GPU to speed up; backend is
accepted for a uniform interface but the compute always stays on the CPU.
.ggmlr_largest_gene(mat, backend = c("vulkan", "cpu"), chunk_size = NULL)
mat |
A |
backend |
Accepted for interface uniformity; ignored (always CPU). |
A ggml_result with metadata$kind = "coldata" and
embedding a data.frame of two columns: largest_gene (chr, the
feature name, NA for empty cells) and percent.Largest.Gene
(dbl, max / colSum * 100, 0 for empty cells), one row per cell.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.