crested.pl.bar.region_predictions#
- crested.pl.bar.region_predictions(adata, region, model_names=None, share_y=True, **kwargs)#
Barplots of all predictions in .layers vs the groundtruth for a specific region across comparing classes.
- Parameters:
adata (
AnnData
) – AnnData object containing the predictions inlayers
.region (
str
) – String in the format ‘chr:start-end’ representing the genomic location.model_names (
Optional
[list
[str
]] (default:None
)) – List of model names inadata.layers
. If None, will create a plot per model inadata.layers
.share_y (
bool
(default:True
)) – Whether to rescale the y-axis to be the same across plots. Default is True.kwargs – Additional arguments passed to
render_plot()
to control the final plot output. Please seerender_plot()
for details.
- Return type:
See also
Example
>>> crested.pl.bar.region_predictions( ... adata, ... region='chr1:3094805-3095305' ... model_names=["model_1", "model_2"], ... share_y=False, ... title="Region chr1:3094805-3095305" ... )