phiper is an end-to-end R toolkit for Phage ImmunoPrecipitation
sequencing (PhIP-seq) data analysis. It covers everything from quality
control and enrichment statistics to diversity metrics and
publication-ready figures — supporting both cross-sectional and
longitudinal study designs.
You can install the development version of phiper from GitHub with
either pak or devtools:
# install.packages("pak")
pak::pak("Polymerase3/phiper")
# or, using devtools:
# install.packages("devtools")
devtools::install_github("Polymerase3/phiper")
Note:
phiperdepends onphiperiofor data import and class construction. It is installed automatically by the commands above.
phiper is organised into four analysis domains, each with dedicated
computation and visualisation functions:
plot_enrichment_counts() gives a quick
overview of per-group peptide hit counts.compute_alpha(),
compute_alpha_significance()).compute_distance(), compute_pcoa(), compute_capscale(),
compute_permanova(), compute_dispersion(), compute_tsne()).compute_delta(), forestplot(),
ecdf_plot()).compute_pop(), scatter_static(),
volcano_static()).compute_ / plot_ patternEvery domain follows the same two-step workflow: a compute_*()
function returns a tidy data structure, which is then passed to one or
more plot_*() functions. This keeps computation and visualisation
cleanly separated and makes it easy to inspect, filter, or export
results before plotting.
All visualisation functions come in two flavours: a static version built
on ggplot2 (composable with the full tidyverse graphics ecosystem)
and an interactive version built on plotly (useful for exploratory
data analysis and HTML reports). Both use the built-in theme_phip()
and phiper colour scales for a consistent visual style.
Full documentation, worked examples, and vignettes are available on the package website:
https://polymerase3.github.io/phiper/
A hands-on Typical workflow tutorial walks through a full cross-sectional analysis — loading data, alpha/beta diversity, POP, and DELTA — using a bundled dummy dataset.
The Peptide Library Metadata vignette describes the Agilent, Twist, and Corona2 peptide library annotation columns.
Bug reports, feature requests, and questions are welcome. Please open an issue on the GitHub tracker:
If you’d like to contribute, please read CONTRIBUTING.md.