zoom.sc_tool.compute_gss
- zoom.sc_tool.compute_gss(adata: anndata.AnnData, n_jobs: int) anndata.AnnData[source]
Calculates the gene expression rank for each cell.
- Parameters:
adata (ad.AnnData) – The AnnData object containing expression data.
gss_limit (float) – Allowed maximum GSS value to avoid over-representation.
n_jobs (int) – Number of cores for parallel computation.
- Returns:
adata – The AnnData object with a new layer adata.layers[‘gss’] containing the gene specificity scores.
- Return type:
ad.AnnData
References
Song, L., Chen, W., Hou, J., Guo, M. & Yang, J. Spatially resolved mapping of cells associated with human complex traits. Nature 641 932-941 (2025).