Learn R Programming

Welcome to EZbakR!

EZbakR is a highly flexible tool for analyses of nucleotide recoding RNA-seq datasets (NR-seq; e.g., TimeLapse-seq, SLAM-seq, TUC-seq, etc.). See our paper for a discussion of the motivation behind EZbakR and its companion pipeline fastq2EZbakR, as well as validation of all of its novel functionality.

To install or update, run:

if (!require("remotes", quietly = TRUE))
    install.packages("remotes")
remotes::install_github("isaacvock/EZbakR")

At this point, changes will be made weekly, so updating frequently is highly recommended.

Documentation is here: https://isaacvock.github.io/EZbakR/

Vignettes

Currently, the following functionalities have dedicated vignettes:

  1. Quickstart: Takes you through the standard workflow, similar to bakR's one and only workflow.
  2. Estimating fractions: Estimating the fraction of reads from each mutational population in your data. This is the nearly universal first step in all NR-seq analyses. This is done with EZbakR's EstimateFractions() function.
  3. Estimating kinetics: Estimating kinetic parameters of synthesis and degradation in a standard NR-seq experiment. For standard, single label, NR-seq analyses, this is the next step in your analysis workflow after estimating the fraction of reads that are from labeled RNA. This is done with EZbakR's EstimateKinetics() function.
  4. Quality Control: Assessing the quality of your NR-seq data. This is done with EZbakR's EZQC() function.
  5. Comparative analyses: Fitting a flexible generalized linear model to your NR-seq data so as to perform comparative analyses of estimated kinetic parameters that complements differential expression analyses. This is done with EZbakR's AverageAndRegularize() and CompareParameters() functions.
  6. Dynamical systems modeling. This is done with EZbakR's EZDynamics() function.
  7. Navigating EZbakR output. This is done with the EZbakR's EZget() function.

Other implemented functionality that will have vignettes in the future includes:

  1. Providing fractions or kinetic parameter estimates as input. The former works similarly to how it did in bakR, and is implemented via the EZbakRFractions() function. THe latter is unique to EZbakR and is implemented via the EZbakRKinetics() function.
  2. Simulating NR-seq data. There are a number of simulation functions implemented in EZbakR. EZSimulate() is a convenient wrapper to several of these.

What's new?

EZbakR represents a complete rewrite of bakR. Improvements implemented in EZbakR include:

  1. Modular function design that facilitates using EZbakR with any kind of NR-seq data, regardless of the experimental design or data details.
  2. Extended mixture modeling capabilities. Includes:
    • Support for multi-label analyses.
    • Hierarchical mutation rate estimation strategy to allow for feature-specific mutation rates.
    • More efficient and accurate uncertainty quantification.
  3. Additional kinetic parameter estimation strategies:
    • Non-steady-state analyses as introduced in Narain et al., 2021.
    • Short-feed analyses that assume negligible degradation of existing RNA.
    • Synthesis rate estimation is implemented as a part of all strategies.
  4. Improved uncertainty propogation so as to achieve performance of bakR's slower implementations (Hybrid and MCMC) with a strategy as efficient as bakR's most efficent implementation (MLE).
  5. Removal of Stan dependencies. I love Stan, but having it as an R package dependency makes installation and maintenace more difficult.
  6. Optional Apache Arrow backend to help with analyses of larger-than-RAM datasets
  7. Linear model-based averaging of replicate data to support more complex experimental designs and maximally flexible comparative analyses.
  8. Greater flexibility in terms of the input data structure. Namely, multiple different features can be specified in your input cB table, and multiple different experimental details can be included in your input metadf table.
  9. A novel transcript isoform deconvolution strategy that allows for isoform-specific kinetic parameter estimation.
  10. Generalized linear dynamical systems modeling of NR-seq data. Supports analyses of subcellular fractionation NR-seq extensions, such as those described here, here, and here. Also supports analyses of pre-mRNA processing dynamics.

In the near future, EZbakR will support anything bakR can do that isn't currently implemented (Namely DissectMechanisms() and various visualization functions). There are also a number of exciting developments on the horizon, so stay tuned!

What is NR-seq?

NR-seq refers to a class of methods that combine RNA-seq, metabolic labeling, and unique metabolic label recoding chemistries. These methods were originally developed to dissect the kinetics of RNA synthesis and degradation. Excitingly though, a treasure trove of extensions of the original methods have been created over the years. To-date, nucleotide recoding has been combined with the likes of TT-seq, Start-seq, Ribo-seq, scRNA-seq (other examples of this here, here, and here), Perturb-seq, long-read sequencing, and subcellular fractionation. In addition, while the original methods used 4-thiouridine (s4U), the same chemistry has been found to work with 6-thioguanosine (s6G), opening the door to dual-labeling experimental designs (e.g., TILAC). EZbakR and its companion pipeline fastq2EZbakR aim to provide an integrated and flexible framework to support this exciting class of methods.

Copy Link

Version

Install

install.packages('EZbakR')

Version

0.1.0

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Isaac Vock

Last Published

December 10th, 2025

Functions in EZbakR (0.1.0)

EZQC.EZbakRArrowData

Run quality control checks
CorrectDropout

Correct for experimental/bioinformatic dropout of labeled RNA.
DeconvolveFractions

Deconvolve multi-feature fractions.
EZQC

Run quality control checks
EZDynamics

Generalized dynamical systems modeling
EZQC.EZbakRData

Run quality control checks
EZbakRData

EZbakRData object helper function for users
EZpcaPlot

Make an MAPlot from EZbakR comparison
EZget

Easily get EZbakR table of estimates of interest
EZSimulate

Simulate NR-seq data for multiple replicates of multiple biological conditions
EstimateIsoformFractions

Estimate isoform-specific fraction news (or more generally "fractions").
EZbakRFractions

EZbakRFractions helper function for users
EstimateFractions

Estimate fractions of each RNA population.
EZbakRArrowData

EZbakRArrowData object helper function for users
EZVolcanoPlot

Make a VolcanoPlot from EZbakR comparison
EZbakRKinetics

EZbakRKinetics helper function for users
SimulateMultiLabel

Simulate one replicate of multi-label NR-seq data
ImportIsoformQuant

Import transcript isoform quantification into EZbakRData object
SimpleSim

Simple simulation function
SimulateDynamics

Simulation of generalized dynamical system model.
SimulateIsoforms

Simulation of transcript isoform kinetic parameters.
NormalizeForDropout

Normalize for experimental/bioinformatic dropout of labeled RNA.
EstimateKinetics

Estimate kinetic parameters
SimulateMultiCondition

Simulate NR-seq data for multiple replicates of multiple biological conditions
SimulateOneRep

Simulate a single replicate of NR-seq data
new_EZbakRFractions

EZbakRFractions object constructor
new_EZbakRKinetics

EZbakRKinetics object constructor
create_fraction_design

Generate a fraction_design table for EstimateFractions.
example_cB

Example cB table
EstimateMutRates

Estimate mutation rates
print.EZbakRArrowData

Print method for EZbakRArrowData objects
get_normalized_read_counts

Get normalized read counts from either a cB table or EZbakRFractions object.
VectSimulateMultiLabel

Vectorized simulation of one replicate of multi-label NR-seq data
example_metadf

Example metadf
ode_models

Example ODE model graphs and formulas
print.EZbakRData

Print method for EZbakRData objects
VisualizeDropout

Make plots to visually assess dropout trends
new_EZbakRArrowData

EZbakRArrowData object constructor for internal use
validate_EZbakRArrowData

EZbakRArrowData EZbakRArrowData validator
new_EZbakRData

EZbakRDataobject constructor for internal use
validate_EZbakRKinetics

EZbakRKinetics object validator
standard_fraction_design

Standard fraction_design table for EstimateFractions
validate_EZbakRData

EZbakRDataobject validator
tilac_fraction_design

TILAC fraction_design table for EstimateFractions
validate_EZbakRFractions

EZbakRFractions object validator
AverageAndRegularize

Average parameter estimates across replicates, and regularize variance estimates
EZMAPlot

Make an MAPlot from EZbakR comparison
EZQC.EZbakRFractions

Run quality control checks
CompareParameters

Get contrasts of estimated parameters