Builds the prot_all table behind the 02_prot_all report: for every
(protein, Sample) pair, how many ligands it contributes and their summed
intensity, plus the protein annotation and any protein-level value the search
engine itself reported.
Arguments
- input
A
pep_all-shaped data frame.- protein
Grouping column:
"ProteinFirst"(default),"GeneFirst"or"Accession". Which is appropriate depends on the search engine — see the report's methods section.- multi_mapping
"leading"(default) counts each peptide once, for its leading protein;"all"counts it for every protein it maps to, viaexpand_mapped_proteins(). Under"all"the per-protein peptide counts deliberately no longer sum to the number of peptides in the dataset.- engine_columns
Carry through the protein-level columns the search engine reported (see
prot_engine_columns()). DefaultTRUE.
Value
A data frame with one row per (protein, Sample): Protein,
Sample, Condition, BioReplicate, the protein annotation columns
present in input, n_Peptides, n_Sequences, n_Peptides_unique,
n_Peptides_shared, Area, Log2Area, plus any engine-reported columns.
Zero rows, correctly typed, when input has none.
Details
Area is summed on the linear scale within a sample and log2-transformed
afterwards, matching build_quant_matrix(). Note that the older
get_mat_log2area(pep_all, ProteinFirst, ...) route used by 00_mhc_report
and 01_mhc_overview instead averages Log2Area; the two are not interchangeable.