msmu.pl.plot_missingness
Plot the cumulative distribution of feature completeness.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
mdata
|
MuData
|
|
required |
modality
|
str
|
Name of the modality to plot, such as |
required |
layer
|
str | None
|
Quantification layer; |
None
|
obs_column
|
str | None
|
Sample identifier in |
None
|
kwargs
|
str
|
Additional |
{}
|
Returns:
| Type | Description |
|---|---|
Figure
|
|
Notes
The x-axis is the percentage of samples with an observed value; the y-axis is the cumulative percentage of features at or below that completeness. Quantification and embeddings are unchanged. Resolving an existing sample-identifier column can convert that column in mdata.obs to categorical; pass a copy to preserve its dtype.
Examples:
import msmu as mm
fig = mm.pl.plot_missingness(mdata, modality="protein")
fig.show()