msmu.io.to_readable
Convert MuData modality to a human-readable format.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
mdata
|
MuData
|
MuData object containing the data to convert. |
required |
modality
|
str
|
The modality to convert (e.g., 'psm', 'peptide', 'protein'). |
required |
include
|
str | list[str] | None
|
List of columns to include. |
None
|
exclude
|
str | list[str] | None
|
List of columns to exclude. |
None
|
quantification
|
bool
|
Whether to include quantification data. |
True
|
Returns:
| Type | Description |
|---|---|
DataFrame
|
A pandas DataFrame in a human-readable format. |