tiling_qc#
- squidpy.experimental.pl.tiling_qc(sdata, *, labels_key, qc_key=None, score_col='nhood_outlier_fraction', cmap='RdYlGn_r', figsize=None)[source]#
Plot labels coloured by their tiling-artifact score.
Where tile-boundary artifacts are present, the tile grid emerges as lines of high-scoring cells.
- Parameters:
- sdata
SpatialData SpatialData object (must contain the QC table).
- labels_key
str Key in
sdata.labelswith the segmentation mask.- qc_key
str|None(default:None) Key in
sdata.tableswith the QC AnnData. Defaults to"{labels_key}_qc".- score_col
Literal['nhood_outlier_fraction','smoothed_cut_score','cut_score','max_straight_edge_ratio','cardinal_alignment_score','is_outlier'] (default:'nhood_outlier_fraction') Which
.obscolumn to colour by. One of"nhood_outlier_fraction","smoothed_cut_score","cut_score","max_straight_edge_ratio","cardinal_alignment_score","is_outlier".- cmap
str(default:'RdYlGn_r') Matplotlib colormap name.
- figsize
tuple[float,float] |None(default:None) Figure size passed to
spatialdata.SpatialData.pl.show.
- sdata
- Returns:
None– Nothing, just plots the figure.