Package: beer 1.17.0

Athena Chen

beer: Bayesian Enrichment Estimation in R

BEER implements a Bayesian model for analyzing phage-immunoprecipitation sequencing (PhIP-seq) data. Given a PhIPData object, BEER returns posterior probabilities of enriched antibody responses, point estimates for the relative fold-change in comparison to negative control samples, and more. Additionally, BEER provides a convenient implementation for using edgeR to identify enriched antibody responses.

Authors:Athena Chen [aut, cre], Rob Scharpf [aut], Ingo Ruczinski [aut]

beer_1.17.0.tar.gz
beer_1.17.0.zip(r-4.7)beer_1.17.0.zip(r-4.6)beer_1.17.0.zip(r-4.5)
beer_1.17.0.tgz(r-4.6-any)beer_1.17.0.tgz(r-4.5-any)
beer_1.17.0.tar.gz(r-4.7-any)beer_1.17.0.tar.gz(r-4.6-any)
beer_1.17.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
beer/json (API)
NEWS

# Install 'beer' in R:
install.packages('beer', repos = c('https://bioc.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/athchen/beer/issues

Uses libs:
  • jags– Just Another Gibbs Sampler for Bayesian MCMC - binary JAGS is Just Another Gibbs Sampler. It is a program for analysis of Bayesian hierarchical models using Markov Chain Monte Carlo (MCMC) simulation not wholly unlike BUGS. JAGS was written with three aims in mind: * To have an engine for the BUGS language that runs on Unix * To be extensible, allowing users to write their own functions, distributions and samplers. * To be a plaftorm for experimentation with ideas in Bayesian modelling This package contains the 'jags' binary as well as the associated shared library modules loaded by the binary.
  • c++– GNU Standard C++ Library v3

On BioConductor:beer-1.17.0(bioc 3.24)beer-1.15.1(bioc 3.23)

softwarestatisticalmethodbayesiansequencingcoveragejagscpp

5.66 score 11 stars 14 scripts 364 downloads 10 exports 70 dependencies

Last updated from:2ad6b135ea. Checks:1 NOTE, 7 ERROR, 2 OK. Indexed: yes.

TargetResultTimeFilesSyslog
bioc-checksNOTE195
linux-devel-x86_64ERROR526
source / vignettesOK325
linux-release-x86_64ERROR454
macos-release-arm64ERROR345
macos-oldrel-arm64ERROR246
windows-develERROR794
windows-releaseERROR904
windows-oldrelERROR804
wasm-releaseOK146

Exports:beadsRRbrewbrewOneedgeROneedgeROneQLFgetABgetBFgetExpectedguessEnrichedrunEdgeR

Dependencies:abindaskpassBHBiobaseBiocFileCacheBiocGenericsBiocParallelbitbit64blobcachemclicodacodetoolscpp11curlDBIdbplyrDelayedArraydigestdplyredgeRfastmapfilelockformatRfutile.loggerfutile.optionsgenericsGenomicRangesgluehttr2IRangeslambda.rlatticelifecyclelimmalocfitmagrittrMatrixMatrixGenericsmatrixStatsmemoiseopensslPhIPDatapillarpkgconfigprogressrpurrrR6rappdirsrjagsrlangRSQLiteS4ArraysS4VectorsSeqinfosnowSparseArraystatmodstringistringrSummarizedExperimentsystibbletidyrtidyselectutf8vctrswithrXVector

Estimating Enrichment in PhIP-Seq Experiments with BEER

Rendered frombeer.Rmdusingknitr::rmarkdownon May 30 2026.

Last update: 2022-06-30
Started: 2021-02-23

Readme and manuals

Help Manual

Help pageTopics
Function to run the beads-only round robin using BEER.beadsRRBeer
Function to run the beads-only round robin using edgeR.beadsRREdgeR
Run BEER for all samples.brewSamples
Function to check that the counts matrix only contains integers.checkCounts
Function to check whether an assay will be overwritten.checkOverwrite
Estimate edgeR dispersion parameters from the beads-only data using qCML.edgeRBeads
Estimate edgeR dispersion parameters from the beads-only samples using Cox-Reid profile adjusted likelihood method for estimating dispersions..edgeRBeadsQLF
Derive beta shape parameters using edgeR dispersion estimates.getABEdgeR
Wrapper function to derive MLE estimates of a, b from beads-only samples.getABMLE
Helper function to derive MLE estimates of a, b from a vector of proportions.getABMLEProp
Wrapper function to derive MOM estimates of a, b from beads-only samples.getABMOM
Helper function to derive MOM estimates of a, b from a vector of proportions.getABMOMProp
Guess super-enriched peptides based on edgeR fold-change estimates.guessEnrichedEdgeR
Guess enriched peptides based on MLE estimates of the true fold-change.guessEnrichedMLE
Clean-up specified assay names.tidyAssayNames
Clean inputs for JAGS parameters.tidyInputsJAGS
Clean up inputs for prior estimation.tidyInputsPrior
Clean up inputs for identifying super-enriched peptides.tidyInputsSE
Beads-only round robinbeadsRR
Bayesian Enrichment Estimation in R (BEER)brew
Run BEER for one samplebrewOne
Run edgeR for one sample against all the beads-only samples.edgeROne
Run edgeR for one sample against all the beads-only samples using edgeR's QLF Test for differential expression.edgeROneQLF
Estimate beads-only shape parametersgetAB
Calculate Bayes FactorsgetBF
Calculate expected read counts or proportion of readsgetExpected
Identifying clearly enriched peptidesguessEnriched
Derive initial estimates of unknown model parametersguessInits
Run edgeR on PhIP-Seq datarunEdgeR
Summarize MCMC chain and return point estimates for BEER parameterssummarizeRun
Derive point estimates for c, pi, phi, and Z for a particular samplesummarizeRunOne