Contents

1 Introduction

Welcome to RiboCrypt

RiboCrypt is an R package and web server for interactive visualization and analysis in genomics. RiboCrypt works with most NGS-based methods, but much emphasis is put on Ribo-seq data visualization. RiboCrypt uses ORFik experiment objects, so to ensure compatibility use ORFik and massiveNGSpipe for processing own (unpublished) data. If you encounter any issues, please, contact us using the info in the footnote.

The following is web server walk through listing all utilities and options therein.

1.1 Ribo-seq overview

For more general material about ribosome profiling, we suggest reading this review. For more technical explanation of data processing steps and specific analyses, it’s best to see ORFik Overview vignette, especially chapter 6 “RiboSeq footprints automatic shift detection and shifting”.

2 Browser

The browser is the basic coverage display page. It contains a selection panel on the left side and a display window (browser) on the right. It displays coverage of sequencing data in either transcript coordinates (default, collapsed introns to width 0), collapsed introns to user defined size or genomic coordinates. The following (Fig. 1), SRD5A1 gene, has recently been shown to be decoded in three frames.

Figure 1. SRD5A1 gene displayed using default options. Using API, this browser view can be re-generated using this link.

2.1 Browser window

When you press the “plot” button on the selection panel, the selected data will be displayed according to specified options, explained later in the tutorial.

The browser window consists of the specific parts:

  1. Single or multiple density tracks are displayed on top. By default Ribo-seq is rendered in 3 colors, where
  • red is 0 frame, the start frame of reference transcript.
  • green is +1 frame
  • blue is +2 frame
  1. Sequence track (top middle), displayes DNA sequence when zoomed in (< 100nt)
  2. Annotation track (middle), the annotation track displays the transcript annotation, together with black line-dotted bars that are displayed on top of the data track. CDS and other annotations are color-coded according to relative reading frame. Introns are thin gray lines and UTRs are gray and medium sized.
  3. Frame track (bottom), the 3 frames displayed with given color bars:
  • white (start codon, ATG)

  • black (stop codons, TAA | TAG | TGA)

  • brown (custom motifs, e.g. NTG all start codon alternatives)

    When zoomed in, the amino acid sequence is displayed within each frame.

  1. Additional displays, for example protein structure viewer, which appears after clicking on isoform ID on annotation track.

In the example above (Fig. 1), notice green coverage preceding CDS (in Blue). It corresponds to overlapping open reading frame, so it is clear that there are two regions that undergo translation simultaneously in this locus.

2.2 Selection panel (browser)

The display panel shows the primary settings, (study, gene, sample, etc):

2.2.1 Experiment

  • Select an organism: Either select “ALL” to keep all experiments, or subset to a specific organism to display only that subset of experiments in experiment select tab.
  • Select an experiment: The experiments contain study names combined with organism (some studies are multi species, so sometimes one study have multiple experiments). Select which one you want. There also exist merged experiments (all samples merged for the organism, etc). RNA-seq experiments have an addition "_RNA" as suffix. Modalities means all library types (e.g. Ribo-seq, RNA-seq in one experiment)

2.2.2 Gene

  • Select a gene: A gene can be selected using:
    • Gene id (ENSEMBL)
    • Gene symbol (HGNC, etc)
  • Select a transcript: A transcript isoform of the given gene above, default is Ensembl canonical isoform, other isoforms can be selected.

2.2.3 Library

Usually each experiment have multiple libraries. In the case of merged experiments, different modalities (RFP, RNA, disome, TI, see Fig. 2) can be selected in this field. Select which one to display, if you select multiple libraries they will be stacked in the browser as multiple tracks.

Library are by default named:

  • Library type (RFP, RNA etc),
  • Condition (WT, KO (wild type, knock out ) etc)
  • Stage/timepoint (5h, 1d (5 hours, 1 day) etc)
  • fraction (chx, cytosolic, ATF4 (ribosomal inhibitor, cell fraction, gene) etc)
  • replicate (technical/biological replicate number (r1, r2, r3))

The resuting name could for example be:

  • RFP_WT_5h_chx_cytosolic_r1

It’s normal to see that if condition is KO (knockout), the fraction column contains a gene name (the name of the gene that was knocked out). Currently the best way to find SRR run number for respective sample is to go to metadata tab and search for the study. The reverse is also true, if you want to select the library from only known SRR, you can either insert URL with library=SRR… or find the library name from the

  • Unique Alignments checkbox: Specifies to use unique Alignments (SAM NH flag = 1), or all alignments (both track files must be pre-computed), see below on STAR alignment details for more info.

2.2.4 Display type

  • Select reading frames display type:
    • lines (single line per frame, most clear for middle distance (> 100 nt))
    • columns (single bars per position, most clear for single nucleotide resolution)
    • stacks (Area under curve, stacked, most clear for large regions (> 1000 nt))
    • area (Area under curve, with semitransparent overlapping frames, most clear for large regions (> 1000 nt))
    • heatmap (good for displaying large number of libraries, see metabrowser for display of thousands of libraries)
    • animate (single row with animation changing between libraries)
  • K-mer length: sliding window of selected length applying averaging coverage per frame. K-mer = 1 means unaltered data. When looking at a large region (> 100nt), pure coverage can usually be hard to inspect due to intrinsic Ribo-seq spikyness. Using K-mer length > 1 (9, the default, is a good starting point), you can easily look at patterns over larger regions.

Notice, how in figure 2 reducing K-mer length to 1, changing display type to columns and adding TI-seq (Translation Initiation profiling, samples treated with translation initiation inhibitors - either lactimidomycin or harringtonin) enables detection of translation in all three reading frames. In fact, experienced user can notice drop of signal in red frame after stop codon of the corresponding ORF (hidden behind most abundant, green), further corroborating overlapping translation. If this process seems somewhat imprecise and not fully defined - it is by design - annotating such elusive phenomena is notoriously difficult to tackle algorithmically, and doing so successfully requires deep intuition in how the signal and noise behave, so manual investigation into many instances like this. Thus, RiboCrypt can be treated as a hypothesis building tool, rather a database of fixed answers. Try modifying yourself, for example switching on RNA-seq track, or altering smoothing window width.

Figure 2. Comparison of display types and smoothing window widths.

2.3 Selection panel (Settings)

Settings tab contains additional parameters:

  • 5’ extension (extend viewed window upstream)
  • 3’ extension (extend viewed window downstream)
  • Custom sequences highlight (Motif search, given in brown color, support IUPAC, examples: CTG or NTG)
  • Genomic region (Browse genomic window instead of gene, syntax: chromosome:start-stop:strand, human/mouse/zebrafish: 1:10000-20000:+ , yeast: I:10000-20000:+. Both 1 and chr1 works, conversion will be done automatically)
  • Zoom interval (start with a zoom and highlight on a subsection): Either specified in tx/view coordinates, i.e. 20:50 will give zoom on region (20-10):(50+10) = 10:60, and a highlight color (light yellow) at coordinates 20:50. You can also specify in genomic coordinates as above for genomic region (remember the genomic coordinates must then be within the gene / region you are displaying).
  • Genomic View (Activate/deactivate genomic view, displaying full introns, see Figure 3)
  • Full annotation (display all transcript isoforms annotation or just the selected isoform)
  • Collapsed introns (Collapse introns of the annotation which are not overlapping any exons the in shown annotation. Subset to size defined in collapsed intron width box, setting to 0 should produce the same plot in genomic coordinates as turning genomic coordinates off.)
  • uORF annotation (display candidate uORFs in the annotation track) this is not the predicted set, but all possible uORFs by seqnece. For predicted set, check the predicted translons checkbox.
  • Predicted translons - display predicted translons in the annotation track. Try turning it on for the example in Figures 1 and 2 - notice that the red (second) translon was missed
  • Log scale (Log scale the coverage, reduces effect of extreme peaks)
  • Protein structures (If you click the annotation name of a transcript in the plot panel it will display the alpha-fold protein colored by the ribo-seq data displayed in the plot panel)
  • PhyloP (PhyloP conservation track will be added on the bottom)
  • Mappability (mappability track of 28-mers, showing strong / weak mappability regions.)
  • Split color frame (Split riboseq signal into colors by frame) i.e. red, green and blue. If this is on, then Ribo-seq and Ti-seq will be displayed with colors split by frame.
  • Frames subset (If split color frame is TRUE, you can display only wanted color)
  • Summary top track (Add an additional plot track on top, summarizing all selected libraries)
  • Select Summary display type (same as frames display type above, but for the summary track)
  • Export format (Choose plot export format from plotly controls. The default is svg vector graphics that allows for high customizability)
  • Plot (red button, render selected gene/region as plotly html, with specified settings)

Uniquely, RiboCrypt allows for toggling between transcriptomic and genomic views, while displaying coding exons in colors according to the correct reading frame. Moreover, extensions allow for exploration of large chunks of the genome, even tens of thousands of bases. Try finding all genes in this browser window, and then turn full annotation on to see what you missed! (loading may be a bit slow, but displaying over region 30 thousands bases long here isn’t practical)

Figure 3. Comparison between transcriptomic and genomic view on yeast EFM5 and ABP140 genes.

2.4

3 Mega Browser

Display all samples for a specific organism over selected gene (Fig. 5). This tab does not use bigwig files to load (as that would be very slow). It uses precomputed fst files of coverage over all libraries. Note: Not all isoforms are computed, by default the longest isoform is computed.

Figure 5. Heatmap of thousands of libraries coverage over ATF4 transcript. Clustered using k-means = 2, with summary track displayed on top.

3.1 Selection panel (Browser)

Organism, experiment and gene explained above

  • Meta motif: Amino acid motifs from all genes over all libraries (+/- 300 nucleotides shown)
  • Order on: the metadata column to order plot by. The first factor defined will be the one that decided what to cluster / group by.
  • Enrichment test on: What factor to do enrichment analysis on: For clusters (factor 1), it will do test on the first factor defined in “Order on”. For all the others it will create numeric bins of the ordering.
  • K-means clusters: How many k-means clusters to use, if > 1, Group will be sorted within the clusters, but K-means have priority.

3.2 Selection panel (Settings)

  • Normalization (all scores are tpm normalized and log scaled)
    • transcriptNormalized (each sample counts sum to 1) (default)
    • Max normalized (each position count divided by maximum)
    • zscore (zscore normalization, (count * mean / sd) variance scaled normalization)
    • tpm (raw tpm of counts, is very sensitive to extreme peaks)
  • Color theme: Which color theme to use
  • Color scale multiplier: how much to amplify the color signal (if all is single color, try to reduce or increase this depending on which color is the majority)
  • Sort by other gene: Sort heatmap on expression of another gene (increasing). A line plot will be shown left that display the expression of that other gene per row. Also the enrichment analysis is done on bins of the other genes expression instead of metadata term.
  • Sort on interval ratio: If 2 numbers of format x:y, will give ordering over all libraries by strength of the region. For format x:y;a:b, it will create a ratio ordering of strength of x:y / a:b. Useful to compare to regions.
  • Summary top track (same as in browser, the aggregate of all rows, useful to see the frame information, which is not represented in the heatmap)
  • Split by frame: (Not active yet!): When completed will display the heatmap with frame information, so rgb colors from white to dark red etc.
  • Summary display type: Same as in browser
  • Selected region to view: By default uses entire transcript. Can subset to only view cds or leader+cds etc.
  • Select a transcript: Which transcript isoforms not all isoforms have computed fsts. By default the longest isoforms have been computed for all genes.
  • Minimum counts: The minimum raw counts over the total area per library to display, useful to filter out low coverage libraries to remove noice from enrichment test etc.
  • K-mer length: Smoothens out the signal by applying a mean sliding window, default 1 (off)

3.3 Statistics tab

This tab gives the statistics of over representation analysis per cluster of the metabrowser plot. Using chi squared test, it gives the residuals per term from metadata (like tissue, cell-line etc). If a value is bigger than +/- 3, it means it is quite certain this is over represented. This is shown as a red line.

If no clustering was applied, this tab gives the number of items per metadata term (40 brain samples, 30 kidney samples etc).

3.4 Result table

This tab gives the metadata with run ids, bioproject and cluster / numeric bin id, for each sample that passes the count filter.

3.5 Requirements

This mode is very intensive on CPU, so it requires certain pre-computed results for the back end. That is namely: - Premade collection experiments (an ORFik experiment of all experiments per organism) - Premade collection count table and library sizes (for normalizations purpose) - Premade fst serialized coverage calculation per gene (for instant loading of coverage over thousands of libraries)

Note that on the live app, the human collection (4000 Ribo-seq samples) takes around 30 seconds to plot for a ~ 2K nucleotides gene, ~99% of the time is spent on rendering the plot, not actual computation. Future investigation into optimization will be done.

4 Analysis

Here we collect the analysis possibilities, which are usually operating on meta-gene or multi locus scale.

4.1 Motif metaplot

This tab displays a heatmap of coverage per readlength at a specific region (like start site of coding sequences) over all genes selected.