msmu.io.write_csv
Exports MuData modalities to CSV/TSV files.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
mdata
|
MuData
|
MuData object containing the data to export. |
required |
modality
|
str
|
The modality to export (e.g., 'psm', 'peptide', 'protein'). |
required |
filename
|
str | Path
|
Path to the output file. |
required |
sep
|
str
|
Separator for the output file (e.g., ',', ' '). |
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
|