scdef.pl.relevance ¶
relevance(model: scDEF, mode: Literal['brd', 'ard'] = 'brd', thres: Optional[float] = None, iqr_mult: Optional[float] = None, show_yticks: bool = False, scale: Literal['linear', 'log'] = 'linear', normalize: bool = False, fontsize: int = 14, legend_fontsize: int = 12, xlabel: str = 'Factor', ylabel: str = 'Relevance', color: bool = False, show: bool = True, ax: Optional[Axes] = None, **kwargs: Any) -> Optional[Axes]
Plot relevance determination scores.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
model
|
scDEF
|
scDEF model instance |
required |
mode
|
Literal['brd', 'ard']
|
mode to plot, either "brd" or "ard" |
'brd'
|
thres
|
Optional[float]
|
threshold value for relevance cutoff |
None
|
iqr_mult
|
Optional[float]
|
multiplier for IQR-based threshold |
None
|
show_yticks
|
bool
|
whether to show y-axis ticks |
False
|
scale
|
Literal['linear', 'log']
|
scale for y-axis, either "linear" or "log" |
'linear'
|
normalize
|
bool
|
whether to normalize relevance scores |
False
|
fontsize
|
int
|
font size for labels |
14
|
legend_fontsize
|
int
|
font size for legend |
12
|
xlabel
|
str
|
label for x-axis |
'Factor'
|
ylabel
|
str
|
label for y-axis |
'Relevance'
|
color
|
bool
|
whether to color bars by factor type |
False
|
show
|
bool
|
whether to show the plot |
True
|
ax
|
Optional[Axes]
|
matplotlib axes to plot on |
None
|
**kwargs
|
Any
|
additional plotting keyword arguments |
{}
|
Returns:
| Type | Description |
|---|---|
Optional[Axes]
|
Axes object if show is False, None otherwise |