Skip to main content
Bioinformatics logoLink to Bioinformatics
. 2022 Feb 14;38(8):2358–2360. doi: 10.1093/bioinformatics/btac093

riboviz 2: a flexible and robust ribosome profiling data analysis and visualization workflow

Alexander L Cope 1, Felicity Anderson 2, John Favate 3, Michael Jackson 4, Amanda Mok 5, Anna Kurowska 6, Junchen Liu 7, Emma MacKenzie 8, Vikram Shivakumar 9, Peter Tilton 10, Sophie M Winterbourne 11, Siyin Xue 12, Kostas Kavoussanakis 13, Liana F Lareau 14,15,, Premal Shah 16,, Edward W J Wallace 17,
Editor: Alfonso Valencia
PMCID: PMC9004635  PMID: 35157051

Abstract

Motivation

Ribosome profiling, or Ribo-seq, is the state-of-the-art method for quantifying protein synthesis in living cells. Computational analysis of Ribo-seq data remains challenging due to the complexity of the procedure, as well as variations introduced for specific organisms or specialized analyses.

Results

We present riboviz 2, an updated riboviz package, for the comprehensive transcript-centric analysis and visualization of Ribo-seq data. riboviz 2 includes an analysis workflow built on the Nextflow workflow management system for end-to-end processing of Ribo-seq data. riboviz 2 has been extensively tested on diverse species and library preparation strategies, including multiplexed samples. riboviz 2 is flexible and uses open, documented file formats, allowing users to integrate new analyses with the pipeline.

Availability and implementation

riboviz 2 is freely available at github.com/riboviz/riboviz.

1 Introduction

Ribo-seq quantifies the ‘translatome’ of actively translated RNAs in cells (Ingolia et al., 2009). Ribo-seq combines high-throughput sequencing with nuclease footprinting of ribosomes to identify the location of ribosomes across the transcriptome at codon-level resolution. Ribo-seq is often combined with RNA-seq to quantify post-transcriptional regulation and also enables quantitative mechanistic insight into the movement of ribosomes along RNA. Specialized pipelines are needed for Ribo-seq data, covering preprocessing, read mapping, gene-specific and codon-specific quantification and other downstream analyses (Li et al., 2020). We previously developed riboviz as an analysis and visualization framework for Ribo-seq data (Carja et al., 2017). Here, we present a significantly expanded and reworked version: riboviz 2.

2 Materials and methods

The riboviz 2 pipeline is implemented via Nextflow (Di Tommaso et al., 2017; Jackson et al., 2021) to process multiple samples from an experiment in a single command-line call. All run-specific parameters are specified by the user in a single YAML-format configuration file, documented at github.com/riboviz/riboviz. Users may also utilize a graphical user interface (GUI) to aid in the generation of this configuration file. The configuration file facilitates reproducible and transparent analyses, and allows the pipeline to run on various computing systems. riboviz 2 invokes both publicly available tools [e.g. cutadapt (Martin, 2011), HISAT2 (Kim et al., 2015), UMI-tools (Smith et al., 2017)], and custom Python and R scripts for data parsing and visualization.

The riboviz 2 workflow (Fig. 1A) starts with preprocessing of Ribo-seq data in FASTQ format, including adapter trimming and removing reads mapping to user-supplied contaminant sequences such as rRNA. Following preprocessing, the remaining reads are aligned to the relevant sequences as defined by user-provided FASTA and GFF3 files. Due to differences in ribosome structure and Ribo-seq protocols, the appropriate strategy for assigning reads to the codon at the ribosomal active site varies between species, e.g. Ribo-seq reads from eukaryotes and bacteria are mapped relative to the 5ʹ- and 3ʹ-end, respectively (Mohammad et al., 2019). riboviz 2 allows the user to map relative to either end of the read by specifying the displacement separately for each desired read length.

Fig. 1.

Fig. 1.

riboviz pipeline and data structures. (A) riboviz takes in user-provided sequencing, transcript annotation, and configuration files, processes the datasets and generates two major output—transcriptome-specific BAM file and a ribogrid file. These outputs are used to generate sample-specific analyses and summaries, which can be visualized as both static figures and in an interactive R/Shiny application. (B) Structure of the ribogrid file format. Ribogrid is a complete representation of transcript-specific ribosome-footprint data in an H5 file format. Each row indicates reads of a particular length and each column indicates the position of the 5ʹ-end of a footprint. *Optional

riboviz 2 provides outputs typical to Ribo-seq in standard file formats, including the aligned reads in BAM format and number of read counts by read length in text format. We provide a ribogrid’ intermediate data file in H5 format that contains one aligned read count matrix per transcript, organized by both 5ʹ position and read length. These counts are a sufficient statistic for most downstream analyses, in that the only information used from the raw alignments is the count by both position and length. Documentation and accessor functions for this ribogrid H5 file format enable the future addition of custom analysis functions.

riboviz 2 automatically outputs visualizations commonly used in publications describing Ribo-seq experiments, both for quality control to confirm that the experiment successfully recovered ribosome footprints, and as a valuable tool for analysis. These include read length distributions, proportion of reads mapping to the primary, +1, and +2 reading frames per gene, and metagene plots showing three-nucleotide periodicity. riboviz 2 directly visualizes the aligned read count matrix, with a heatmap of the footprint counts arranged by both 5ʹ position and read length (Fig. 1B). These ‘ribogrid’ plots are a rich way to read out mechanistic details of Ribo-seq data such as read frame (Lareau et al., 2014). For each processed sample, the various plots output by riboviz 2 are combined into static HTML file as an overall visual summary. riboviz 2 can compare codon-specific ribosome densities to features or measures expected to correlate with elongation rates, such as tRNA gene copy numbers, and compare gene-specific features (such as codon usage metrics) to gene-level quantifications of ribosome density. In addition to these static visualizations on a per sample basis, riboviz 2 allows users to interactively visualize all of their data in an R/Shiny based web application (Fig. 2). The Shiny app is particularly useful for comparing results across control and treatment samples. Users can adjust interactive versions of the static plots already provided as well as view gene-level statistics such as read distribution along a specific gene.

Fig. 2.

Fig. 2.

The riboviz 2 data visualization application is powered by R and Shiny and allows users to view various aspects of their data in an interactive manner in a web browser. Shown is an example visualization using data from Guydosh and Green (2014). This dataset is also part of our example datasets repository (https://github.com/riboviz/example-datasets).

3 New features and advantages

Flexibility across organisms

riboviz 2 can be used on any organism for which a transcriptome FASTA and GFF3 file can be constructed, making it a valuable tool for users studying either model or non-model organisms. This is an advantage for riboviz 2 compared to other GUI or command-line based tools that are limited to a set of organisms or require sequence annotations to be downloaded from a specific database (Liu et al., 2020; Perkins et al., 2019; Verbruggen et al., 2019; Wang et al., 2018). The user is responsible for supplying a FASTA file appropriate to their biological question, e.g. using a published annotation to define spliced transcripts including untranslated regions, or a ‘padded ORFeome’ that contains fixed-width extensions to a set of open reading frames (ORFs) of interest. The user must also supply a file in GFF3 format that specifies the positions of ORFs within the transcripts. Example configuration files to run riboviz 2 on diverse datasets that span the major domains of life (Archaea, Bacteria and Eukarya), with matched transcriptome and contaminant files, are shared at (github.com/riboviz/example-datasets). These files may be used to reproduce analyses, or adapted to analyze new datasets.

Flexible end-to-end data processing workflow

Another advantage of riboviz 2 is that it provides a comprehensive workflow starting from raw reads and ending with publication-quality figures. Many pipelines require input that has either already been preprocessed or aligned [see Li et al. (2020) for a summary of the functionality of other pipelines]. Instead, riboviz 2 provides comprehensive data preprocessing (e.g. adapter trimming) and read alignment by interfacing to cutadapt (Martin, 2011) and HISAT2 (Kim et al., 2015). riboviz 2 is also flexible to variations in library preparation. To the best of our knowledge, riboviz 2 is the only Ribo-seq pipeline which is prebuilt to handle multiplexed libraries or unique molecular identifiers. Following read alignment, riboviz 2 uniquely invokes an (optional) script to trim non-templated 5ʹ mismatches added by some viral reverse transcriptases (Wulf et al., 2019), which otherwise leads to inaccurate quantification of read frame. riboviz 2 requires no knowledge of Python or R to take advantage of the riboviz 2 functionality, unlike many other tools (Backman and Girke, 2016; Lauria et al., 2018). As riboviz 2 is implemented as a Nextflow workflow going from raw data to visualization while requiring only a single configuration YAML file, reproducing an analysis does not require independently running various tools.

Flexible and documented data outputs

A major goal of a Ribo-seq analysis pipeline is to enable further downstream analyses of Ribo-seq data, such as differential expression analysis and identification of ribosome pausing sites. riboviz 2 consolidates the data into outputs that are suitable for downstream analysis, such as aligned read count matrices in the ribogrid H5 file. riboviz 2 aggregates raw counts per transcript into a format which can be used as input to tools such as DESeq2 (Love et al., 2014), and provides per-ORF translation values in transcripts per million (TPM).

Overall, riboviz 2 is a flexible, documented and carefully engineered open-source workflow for Ribo-seq analysis and visualization.

Funding

This work was supported by the Biotechnology and Biological Sciences Research Council [BB/S018506/1 to E.W.J.W.]; the Wellcome Trust [208779/Z/17/Z to E.W.J.W., 204804/Z/16/Z to The University of Edinburgh]; the National Science Foundation [DBI 1936046 to P.S., DBI 1936069 to L.F.L.]; the National Institutes of Health [R35 GM124976 and subcontracts from R01 DK056645, R01 DK109714, R01 DK124369 to P.S., R01 GM132104 to L.F.L]; and start-up funds from the Human Genetics Institute of New Jersey at Rutgers University to P.S.

Conflict of Interest: none declared.

Data Availability Statement

The source code and data underlying this article are available in figshare, at https://dx.doi.org/10.6084/m9.figshare.12624200. The development version of the source code is also available at https://github.com/riboviz/riboviz, where we welcome user comments and contributions.

Contributor Information

Alexander L Cope, Department of Genetics, Rutgers University, Piscataway, NJ 08854-8082, USA.

Felicity Anderson, Institute for Cell Biology and SynthSys, School of Biological Sciences, The University of Edinburgh, Edinburgh EH9 3BF, UK.

John Favate, Department of Genetics, Rutgers University, Piscataway, NJ 08854-8082, USA.

Michael Jackson, EPCC, The University of Edinburgh, Edinburgh EH8 9BT, UK.

Amanda Mok, Center for Computational Biology, University of California, Berkeley, CA 94720, USA.

Anna Kurowska, Institute for Cell Biology and SynthSys, School of Biological Sciences, The University of Edinburgh, Edinburgh EH9 3BF, UK.

Junchen Liu, EPCC, The University of Edinburgh, Edinburgh EH8 9BT, UK.

Emma MacKenzie, Institute for Cell Biology and SynthSys, School of Biological Sciences, The University of Edinburgh, Edinburgh EH9 3BF, UK.

Vikram Shivakumar, Department of Bioengineering, University of California, Berkeley, CA 94720, USA.

Peter Tilton, Department of Genetics, Rutgers University, Piscataway, NJ 08854-8082, USA.

Sophie M Winterbourne, Institute for Cell Biology and SynthSys, School of Biological Sciences, The University of Edinburgh, Edinburgh EH9 3BF, UK.

Siyin Xue, Institute for Cell Biology and SynthSys, School of Biological Sciences, The University of Edinburgh, Edinburgh EH9 3BF, UK.

Kostas Kavoussanakis, EPCC, The University of Edinburgh, Edinburgh EH8 9BT, UK.

Liana F Lareau, Center for Computational Biology, University of California, Berkeley, CA 94720, USA; Department of Bioengineering, University of California, Berkeley, CA 94720, USA.

Premal Shah, Department of Genetics, Rutgers University, Piscataway, NJ 08854-8082, USA.

Edward W J Wallace, Institute for Cell Biology and SynthSys, School of Biological Sciences, The University of Edinburgh, Edinburgh EH9 3BF, UK.

References

  1. Backman T.W., Girke T. (2016) systemPipeR: NGS workflow and report generation environment. BMC Bioinform., 17, 388. [DOI] [PMC free article] [PubMed] [Google Scholar]
  2. Carja O.  et al. (2017) Riboviz: analysis and visualization of ribosome profiling datasets. BMC Bioinform., 18, 461. [DOI] [PMC free article] [PubMed] [Google Scholar]
  3. Di Tommaso P.  et al. (2017) Nextflow enables reproducible computational workflows. Nat. Biotechnol., 35, 316–319. [DOI] [PubMed] [Google Scholar]
  4. Guydosh N.R., Green R. (2014) Dom34 rescues ribosomes in 3 untranslated regions. Cell, 156, 950–962. [DOI] [PMC free article] [PubMed] [Google Scholar]
  5. Ingolia N.T.  et al. (2009) Genome-wide analysis in vivo of translation with nucleotide resolution using ribosome profiling. Science, 324, 218–223. [DOI] [PMC free article] [PubMed] [Google Scholar]
  6. Jackson M.  et al. (2021) Using prototyping to choose a bioinformatics workflow management system. PLoS Comput. Biol., 17, e1008622. [DOI] [PMC free article] [PubMed] [Google Scholar]
  7. Kim D.  et al. (2015) HISAT: a fast spliced aligner with low memory requirements. Nat. Methods, 12, 357–360. [DOI] [PMC free article] [PubMed] [Google Scholar]
  8. Lareau L.F.  et al. (2014) Distinct stages of the translation elongation cycle revealed by sequencing ribosome-protected mRNA fragments. eLife, 2014, e01257. [DOI] [PMC free article] [PubMed] [Google Scholar]
  9. Lauria F.  et al. (2018) riboWaltz: optimization of ribosome P-site positioning in ribosome profiling data. PLoS Comput. Biol., 14, e1006169. [DOI] [PMC free article] [PubMed] [Google Scholar]
  10. Li F.  et al. (2020) RiboMiner: a toolset for mining multi-dimensional features of the translatome with ribosome profiling data. BMC Bioinform., 21, 340. [DOI] [PMC free article] [PubMed] [Google Scholar]
  11. Liu Q.  et al. (2020) RiboToolkit: an integrated platform for analysis and annotation of ribosome profiling data to decode mRNA translation at codon resolution. Nucleic Acids Res., 48, W218–W229. [DOI] [PMC free article] [PubMed] [Google Scholar]
  12. Love M.I.  et al. (2014) Moderated estimation of fold change and dispersion for RNA-seq data with DESeq2. Genome Biol., 15, 550. [DOI] [PMC free article] [PubMed] [Google Scholar]
  13. Martin M. (2011) Cutadapt removes adapter sequences from high-throughput sequencing reads. EMBnet.j., 17, 10. [Google Scholar]
  14. Mohammad F.  et al. (2019) A systematically-revised ribosome profiling method for bacteria reveals pauses at single-codon resolution. eLife, 8, e42591. [DOI] [PMC free article] [PubMed] [Google Scholar]
  15. Perkins P.  et al. (2019) RiboStreamR: a web application for quality control, analysis, and visualization of Ribo-seq data. BMC Genomics, 20, 422. [DOI] [PMC free article] [PubMed] [Google Scholar]
  16. Smith T.  et al. (2017) UMI-tools: modeling sequencing errors in Unique Molecular Identifiers to improve quantification accuracy. Genome Res., 27, 491–499. [DOI] [PMC free article] [PubMed] [Google Scholar]
  17. Verbruggen S.  et al. (2019) PROTEOFORMER 2.0: further developments in the ribosome profiling-assisted proteogenomic hunt for new proteoforms. Mol. Cell. Proteomics, 18, S126–S140. [DOI] [PMC free article] [PubMed] [Google Scholar]
  18. Wang S.H.  et al. (2018) Post-translational buffering leads to convergent protein expression levels between primates. Genome Biol., 19, 83. [DOI] [PMC free article] [PubMed] [Google Scholar]
  19. Wulf M.G.  et al. (2019) Non-templated addition and template switching by Moloney murine leukemia virus (MMLV)-based reverse transcriptases co-occur and compete with each other. J. Biol. Chem., 294, 18220–18231. [DOI] [PMC free article] [PubMed] [Google Scholar]

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Data Availability Statement

The source code and data underlying this article are available in figshare, at https://dx.doi.org/10.6084/m9.figshare.12624200. The development version of the source code is also available at https://github.com/riboviz/riboviz, where we welcome user comments and contributions.


Articles from Bioinformatics are provided here courtesy of Oxford University Press

RESOURCES