Skip to content

scdef.pl.factor_gini

factor_gini(model: scDEF, idx: int, thres: float = 0.9, show: bool = True) -> Optional[Axes]

Plot Gini coefficient for a specific factor.

Parameters:

Name Type Description Default
model scDEF

scDEF model instance

required
idx int

Factor index to plot

required
thres float

Threshold for cumulative sum calculation

0.9
show bool

Whether to show the plot

True