Skip to contents

Runs count_uniqueby_ip() five times (totals across all samples, totals across all patients, by Patient, by Sample_type, by Condition) and column-binds the results into one wide summary table — after checking that every variant produced rows in the same identity-key order (otherwise the cbind() would silently misalign).

Usage

count_samples_patients(input, level)

Arguments

input

A pep_all-shaped data frame with Patient/Sample_type/ Condition/Sample columns (the project-specific patient-cohort annotation columns this summary was designed around).

level

Forwarded to count_uniqueby_ip() ("Peptide" or "Protein").

Value

A wide data frame: identity columns (per level) followed by every n_* count column from each of the five summaries.

Examples

if (FALSE) { # \dontrun{
count_samples_patients(pep_all, level = "Peptide")
} # }