msmu.pp.to_protein
Summarize peptide-level data to protein-level data. By default, uses every unique peptide (_shared_peptide = "discard") per protein_group for quantification aggregation with median; top_n with rank_method restricts the rollup to the top-ranked peptides.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
mdata
|
MuData
|
|
required |
layer
|
str | None
|
Layer to use for quantification aggregation. If |
None
|
agg_method
|
Literal['median', 'mean', 'sum', 'median_polish', 'directlfq']
|
Aggregation method to use. One of |
'median'
|
top_n
|
int | None
|
Number of top peptides to consider for summarization. If |
None
|
rank_method
|
Literal['median_intensity', 'total_intensity', 'max_intensity', 'mean_intensity']
|
Method to rank features when selecting |
'median_intensity'
|
calculate_q
|
bool
|
Whether to calculate q-values. Defaults to |
True
|
_shared_peptide
|
Literal['discard']
|
How to handle shared peptides. Currently only |
'discard'
|
Returns:
| Type | Description |
|---|---|
MuData
|
|