Package index
Render reports
Entry points that build the cached pep_all table and render the parameterized QC report templates (00_mhc_report all-in-one, or the focused 01-07 reports)
-
build_pep_all() - Build (and optionally cache) the unified
pep_alltable from raw search output -
run_howmahico_report() - Render a HowMaHiCo QC report from the installed package templates
-
derive_filtered_annotation() - Derive a Condition-filtered copy of a sample annotation file
-
get_report_template() - Get the HowMaHiCo templates
-
get_pipeline_script() - Copy the guided analysis-pipeline script to the working directory
-
report_params() - Build the parameter list of a HowMaHiCo report
-
report_setup() - Set up the objects a HowMaHiCo report works on
-
read_annot() - Read, validate, and reformat a sample annotation table
-
print_annot() - Render an annotation table as an interactive HTML datatable
-
get_annot_fragpipe() - Auto-generate a skeleton annotation table from FragPipe psm.tsv files
-
get_annot_diann() - Auto-generate a skeleton annotation table from DIA-NN report.tsv files
-
get_annot_peaks() - Auto-generate a skeleton annotation table from a PEAKS export folder
-
get_annot_sampleid() - Enrich an annotation table with Sample_ID from a Bruker HyStar sample list
Report helpers
Shared settings the report templates derive from their params: the MHC length window and palette, and the Condition pairs to compare
-
mhc_length_window() - Peptide-length window of an MHC class
-
mhc_class_palette() - Two-colour fill palette of an MHC class
-
mhc_classes() - Names of the built-in MHC classes
-
condition_pairs() - All pairwise Condition comparisons
-
provider_line() - Provider sentence of a report header
-
pep_all_glossary() - Glossary of the
pep_allcolumns -
pepchem_glossary() - Glossary of the physicochemical descriptors
-
read_fragpipe() - Read one FragPipe
psm.tsvor DIA-NNreport.tsvfile -
read_fragpipe_batch() - Batch-read FragPipe
psm.tsvfiles and merge them -
parse_fragpipe() - Parse raw FragPipe PSM results into
pep_allformat -
annotate_fragpipe() - Join parsed FragPipe results to the sample annotation table
-
read_diann() - Read one DIA-NN
report.tsvfile -
read_diann_batch() - Batch-read DIA-NN
report.tsvfiles and merge them -
parse_diann() - Parse raw DIA-NN report results into
pep_allformat -
annotate_diann() - Join parsed DIA-NN results to the sample annotation table
-
read_peaks() - Read one PEAKS
peptide.csvexport into long format -
read_peaks_batch() - Batch-read PEAKS export folders and merge them into raw long format
-
parse_peaks() - Parse raw PEAKS results into
pep_allformat -
annotate_peaks() - Join parsed PEAKS results to the sample annotation table
Custom (dictionary-driven) parsing
The software = "custom" path: ingest a tabular export from a tool with no built-in loader by editing a YAML dictionary instead of writing R code.
-
get_dictionary_template() - Copy the custom-parser dictionary template to the working directory
-
read_dictionary() - Read and validate a HowMaHiCo parser dictionary
-
read_custom_batch() - Batch-read a generic per-sample tabular export
-
parse_unified() - Parse a raw search-engine export into
pep_allvia a dictionary -
annotate_unified() - Join a dictionary-parsed table to the sample annotation
-
check_file_exists() - Check whether a single output file already exists
-
check_output_exists() - Check whether any of the report's standard output files already exist
-
check_ids_global() - Total ID counts split by protein/decoy/contaminant assignment
Counting & overlap analysis
Tabulate ID counts, charge/area summaries, sequence lists, and cross-condition overlaps
-
count_ids() - Count distinct peptides, sequences, and proteins
-
count_ids_condition_bylengthrange() - ID counts and proportions by
Length_rangeandCondition -
count_ids_by() - Wide table of peptide identifications by an arbitrary grouping
-
get_charge_group() - Classify charge states into
+1/+2/>= +3groups -
get_proportion_charge() - Proportions of each charge group within a count table
-
get_mat_log2area() - Build a
Log2Areamatrix for clustering/heatmaps/correlation -
summarise_area() - Per-peptide Area mean/sd/%CV summary by group
-
list_sequences() - List unique peptide sequences per group
-
count_intersect() - Count distinct elements shared between two conditions
-
count_merged() - Count distinct elements across the union of two conditions
-
count_samples_patients() - Combined per-Patient/Sample_type/Condition sample-and-patient count summary
-
select_unique() - Select distinct rows on a subset of columns
-
filter_unique() - Filter rows and drop to distinct/unused-level state
-
plot_peplength_dens() - Peptide length distribution: boxplot + density histogram
-
plot_peplength_hist() - Peptide length histogram faceted by Condition
-
plot_pepmass() - Peptide mass distribution: boxplot + density histogram with apex annotation
-
plot_pepmz() - Peptide m/z distribution: boxplot + density histogram with apex annotation
-
plot_bp_count_length() - Stacked bar chart of total ID counts per Condition, split by length range
-
plot_count_mean_sd() - Mean ± SD barplot of ID counts per Condition, faceted by length range
-
plot_prop_length_condition() - Stacked bar chart of peptide proportions by
Length_rangeandCondition -
plot_charge_proportions() - Stacked bar chart of charge-state proportions by group
-
plot_overlap_intra_condition() - Overlap barplot for one ID level
-
plot_upset() - UpSet plot of overlap between groups for a given variable
-
plot_upset_batch() - Batch of UpSet plots across several variables
-
plot_pseudochromatogram() - Peptide ID pseudochromatogram: count vs RT, faceted by Condition
-
plot_pseudomobilogram() - Peptide ID pseudomobilogram: count vs 1/k0, faceted by Condition
-
plot_2d_distribution() - 2D binned heatmap for any two continuous peptide properties
-
plot_violin_areacv() - Violin + boxplot of Area %CV by group
-
plot_qc_box() - Boxplot of Score or mass error per Condition and charge
-
plot_qc_violin() - Violin + overlaid boxplot of Score or mass error per Condition and charge
-
plot_corr() - Pearson correlation heatmap of log2(Area)
-
plot_ptm_heatmap() - Heatmap of PTM counts or proportions for length-filtered peptides
-
ggseqlogo_bylength() - Sequence motif logo for peptides of a given length
-
theme_rawr() - HowMaHiCo's shared ggplot theme
-
theme_howmahico() - HowMaHiCo's unified ggplot theme
Sample quality score
Per-sample immunopeptidomics quality score behind the 01_mhc_overview report: raw signals (length-window fidelity, canonical-length dominance, anchor-motif clarity, non-tryptic specificity, charge plausibility, depth, mass accuracy, cross-class contamination), the threshold model, and the weighted 0-100 composite.
-
score_sample_quality() - Score immunopeptidomics samples for overall quality
-
qc_metrics_by_sample() - Raw per-sample immunopeptidomics quality metrics
-
anchor_information_content() - Per-position anchor information content of equal-length peptides
-
score_curve() - Map a raw metric value to a 0-100 quality sub-score
-
quality_thresholds_default() - Default quality-score thresholds and weights
-
calibrate_thresholds_from_qc() - Derive QC-relative thresholds from tagged quality-control samples
-
qc_samples_from_annotation() - Read the QC-control samples from an annotation file
-
overview_red_flags() - Plain-language red flags for the overview report
-
plot_quality_heatmap() - Traffic-light heatmap of per-sample quality sub-scores
-
plot_quality_composite() - Per-sample composite quality-score bar chart
-
plot_cross_class_length() - Per-sample peptide-length histogram highlighting cross-class contamination
Comparing runs
Stack the per-sample score tables written by several 01_mhc_overview renders (experiments, subsets, or one QC standard over time) and compare them side by side or as a trend.
-
compare_runs() - Stack the quality scores of several runs into one table
-
summarise_runs() - Summarise stacked quality scores per run
-
plot_run_trend() - Compare quality metrics across runs
Advanced quantification & statistics
Build the quantitative matrix and compare peptide Area between Conditions (filtering, normalization, imputation, limma moderated t / Welch t, Fisher presence-absence, PERMANOVA) plus the plots of the 05_quant_stats report
-
build_quant_matrix() - Build a feature x unit log2(Area) matrix from
pep_all -
filter_quant() - Filter a quantitative matrix to testable features
-
normalize_quant() - Between-sample normalization of a log2 intensity matrix
-
impute_quant() - Left-censored imputation of missing quantitative values
-
test_differential() - Differential abundance between conditions
-
test_detection() - Presence/absence test between conditions (Fisher exact)
-
combine_quant_results() - Combine the quantitative and presence/absence tracks
-
summarise_significant() - Count significant features per contrast
-
permanova_condition() - Global permutation test of condition separation (PERMANOVA)
-
plot_completeness() - Data completeness of a quantitative matrix
-
plot_missing_heatmap() - Presence/absence map of a quantitative matrix
-
plot_intensity_dist() - Intensity distribution per unit (normalization diagnostic)
-
plot_dynamic_range() - Dynamic range (rank-abundance) per condition
-
plot_pca() - Principal component analysis of a quantitative matrix
-
plot_quant_heatmap() - Heatmap of a quantitative matrix, clustered or in annotation order
-
plot_volcano() - Volcano plot of a differential-abundance result
-
plot_ma() - MA plot of a differential-abundance result
-
plot_pvalue_hist() - P-value histogram (test calibration diagnostic)
-
plot_sig_summary() - Significant-feature counts per contrast
Physicochemical properties
Peptide-chemistry engine behind the 04_pepchem report: amino-acid composition, per-position residue frequency and per-peptide descriptors (GRAVY, pI, charge, …), summarised per sample and compared between Conditions.
-
peptide_properties() - Per-sequence physicochemical descriptors
-
pepchem_properties() - Descriptor columns of a property set
-
aa_composition() - Position-independent amino-acid composition
-
aa_position_frequency() - Per-position amino-acid frequency
-
pepchem_by_sample() - Per-sample peptide physicochemical descriptors
-
summarise_pepchem() - Summarise peptide descriptors within a group
-
aggregate_pepchem() - Aggregate per-sample descriptor summaries to Conditions
-
cliffs_delta() - Cliff's delta effect size
-
compare_pepchem() - Compare peptide descriptors between Conditions
-
compare_aa_frequency() - Compare amino-acid frequencies between Conditions
-
plot_aa_composition() - Amino-acid composition across groups
-
plot_aa_position_heatmap() - Per-position amino-acid frequency heatmap
-
plot_property_distribution() - Distribution of one peptide descriptor across Conditions
-
plot_property_sample_summary() - Per-Condition mean +/- sd of a descriptor across samples
-
plot_property_effectsize() - Effect sizes of the between-condition comparison
Protein-level analysis
Condenses the peptide table to source-protein level (the prot_all table behind the 02_prot_all report), including the protein-level values the search engine itself reported.
-
build_prot_all() - Condense
pep_allto one row per protein and sample -
summarise_prot_all() - Condense the protein table across samples
-
top_source_proteins() - Rank the most prolific source proteins
-
expand_mapped_proteins() - Expand peptides onto every protein they map to
-
prot_engine_columns() - Protein-level columns the search engine reported
-
diann_protein_columns() - Engine-reported protein-level column names
-
plot_proteins_per_sample() - Source proteins identified per sample
-
plot_peptides_per_protein() - Distribution of ligands per source protein
-
plot_top_proteins() - Ranked bar chart of the most prolific source proteins
-
plot_protein_detection() - How widely each source protein is detected
-
plot_ligand_vs_protein_quant() - Summed ligand intensity against the search engine's protein quantity
Modifications (PTMs)
Translate the engine-specific PTM tokens carried in pep_all$PTM – UniMod accessions from DIA-NN, monoisotopic delta masses from FragPipe and PEAKS – into readable modification names at plot time
-
ptm_reference() - Reference table of common peptide modifications
-
translate_ptm() - Translate PTM tokens into readable modification names
-
ggsave_rawr() - Save a ggplot to a folder, skipping plots that were never built
-
ggprint_rawr() - Print a plot, skipping ones that were never built
-
write.csv_rawr() - Write a data frame to csv, named after the variable that was passed in
-
write_input_params() - Write a report's render parameters to csv
-
HowMaHiCoHowMaHiCo-package - HowMaHiCo: LC-Immunopeptidomics QC Reporting Workflow