distPlot
distPlot ¶
distPlot(
data,
layer=None,
markers=None,
subset=None,
imageId="imageid",
vline=None,
plotGrid=True,
ncols=None,
color=None,
xticks=None,
figsize=(5, 5),
fontSize=None,
dpi=200,
outputDir=None,
fileName="scimapDistPlot.png",
show=True,
returnData=False,
returnFig=False,
transparent=False,
sdataTable=None,
**kwargs
)
Per-marker intensity histograms in a grid.
One histogram per marker, drawn from whichever matrix layer selects. Pass
vline to draw a candidate gate across every panel — on rescaled data that is
usually 0.5.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data
|
(AnnData | SpatialData | str, required)
|
The cell table. An |
required |
layer
|
str
|
Which matrix to plot. |
None
|
markers
|
list
|
Markers to plot. All of them when |
None
|
subset
|
str | list
|
Restrict to these values of |
None
|
imageId
|
str
|
Column in |
'imageid'
|
vline
|
float
|
Draw a vertical reference line at this value in every panel. |
None
|
plotGrid
|
bool
|
Draw a faint grid behind each histogram. |
True
|
ncols
|
int
|
Panels per row. Defaults to |
None
|
color
|
str
|
Bar colour. |
None
|
xticks
|
list
|
Explicit x tick positions. |
None
|
figsize
|
tuple
|
Size of a single panel in inches; the figure is scaled by the grid. |
(5, 5)
|
fontSize
|
int
|
Panel title font size. |
None
|
**kwargs
|
dict
|
Passed through to |
{}
|
outputDir
|
str
|
Directory to save the figure in. When |
None
|
fileName
|
str
|
File name for the saved figure. The extension decides the format. |
'scimapDistPlot.png'
|
show
|
bool
|
Call |
True
|
returnData
|
bool
|
Return the |
False
|
returnFig
|
bool
|
Return |
False
|
dpi
|
int
|
Resolution of the saved figure. |
200
|
transparent
|
bool
|
Save with a transparent background. |
False
|
sdataTable
|
str
|
Which |
None
|
Returns:
| Name | Type | Description |
|---|---|---|
result |
None | DataFrame | tuple
|
|