troutpy.tl.compute_contribution_score

troutpy.tl.compute_contribution_score#

troutpy.tl.compute_contribution_score(sdata)#

Compute a normalized extracellular RNA (uRNA) contribution score for each cell.

For each gene, a cell’s contribution is weighted as extracellular proportionand divided by the number of cells expressing that gene.

Parameters:

sdata (dict) – A spatialdata object with keys ‘table’ and ‘xrna_metadata’.