msmu.io.add_quant
Attach FlashLFQ peptide quantification to MuData.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
mdata
|
MuData
|
|
required |
quant_data
|
str | PathLike[str] | DataFrame
|
Tab-separated file path/URL or |
required |
quant_tool
|
str
|
Only |
required |
index_name
|
str | None
|
Column in global |
None
|
Returns:
| Type | Description |
|---|---|
MuData
|
|
Notes
All input samples must have intensity columns. Zeros become NaN and values are stored as float32. For an existing peptide modality, its feature/sample axes and annotations are preserved: unmatched identified peptides receive NaN and extra quantified peptides are discarded. Use mdata.copy() to preserve the original. See write_flashlfq_input to prepare FlashLFQ input.
Examples:
import msmu as mm
mdata = mm.io.add_quant(mdata, "QuantifiedPeptides.tsv", quant_tool="flashlfq")