Analysis tools: .gene#

The ggml_ot.gene module provides tools for identifying and visualizing the most important genes in low-dimensional embeddings of single-cell data. It includes functions to compute gene importance from an AnnData object, perform enrichment analysis on top-ranked genes, and visualize enriched biological terms. These functions help you understand the learned embeddings and identify the genes that influence cell differences or key components in your data.

Rank genes in Loadings/Components#

gene.ranking

Rank and plot gene contributions for each GGML component.

Gene Enrichment per Loadings/Components#

gene.enrichment

Performs enrichment analysis on top-ranked genes and visualizes the enriched biological terms.

gene.top_ranked

Return genes with the highest contributions to each GGML component.