scdef.pl.gini_brd ¶
gini_brd(model: scDEF, normalize: bool = False, figsize: Tuple[float, float] = (4, 4), alpha: float = 0.6, fontsize: int = 12, legend_fontsize: int = 10, show: bool = True, ax: Optional[Axes] = None) -> Optional[Axes]
Plot Gini coefficient vs BRD scores.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
model
|
scDEF
|
scDEF model instance |
required |
normalize
|
bool
|
whether to normalize BRD scores |
False
|
figsize
|
Tuple[float, float]
|
figure size |
(4, 4)
|
alpha
|
float
|
transparency level |
0.6
|
fontsize
|
int
|
font size for labels |
12
|
legend_fontsize
|
int
|
font size for legend |
10
|
show
|
bool
|
whether to show the plot |
True
|
ax
|
Optional[Axes]
|
matplotlib axes to plot on |
None
|
Returns:
| Type | Description |
|---|---|
Optional[Axes]
|
Axes object if show is False, None otherwise |