msmu.pl.plot_intensity
Visualizes intensity distributions for a modality using histograms, box, or violin plots.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
mdata
|
MuData
|
MuData object containing the modality to visualize. |
required |
modality
|
str
|
Target modality (psm, peptide, protein, or site). |
required |
groupby
|
str | None
|
Observation column used to group traces. |
None
|
colorby
|
str | None
|
Observation column used for coloring (when applicable). |
None
|
ptype
|
str
|
Plot type: 'hist', 'box', or 'vln'. |
'hist'
|
template
|
str
|
Plotly template for colorway. |
DEFAULT_TEMPLATE
|
bins
|
int
|
Number of bins for histogram view. |
30
|
obs_column
|
str | None
|
Observation column used for labeling/group resolution. |
None
|
**kwargs
|
str
|
Additional layout options forwarded to Plotly. |
{}
|
Returns:
| Type | Description |
|---|---|
Figure
|
Intensity distribution figure. |