Skip to content

msmu.pp.to_protein

Summarise peptide-level data to protein-level data. By default, uses top 3 peptides in their median_intensity and unique (_shared_peptide = "discard") per protein_group for quantification aggregation with median.

Parameters:

Name Type Description Default
mdata MuData

MuData object containing Peptide-level data.

required
layer str | None

Layer to use for quantification aggregation. If None, the default layer (.X) will be used. Defaults to None.

None
agg_method Literal['median', 'mean', 'sum']

Aggregation method to use. Defaults to "median".

'median'
top_n int | None

Number of top peptides to consider for summarisation. If None, all peptides are used. Defaults to None.

3
rank_method Literal['median_intensity', 'total_intensity', 'max_intensity', 'mean_intensity']

Method to rank features when selecting top_n. Defaults to "median_intensity".

'median_intensity'
calculate_q bool

Whether to calculate q-values. Defaults to True.

True
_shared_peptide Literal['discard']

How to handle shared peptides. Currently only "discard" is implemented. Defaults to "discard".

'discard'

Returns:

Type Description
MuData

MuData object containing protein-level data.