Zopra/Charts
Guide
Getting startedAll chartsWhich chart to use?Domain specific
Base charts7
XY ChartTrendCandlestickHeatmapState TimelineFlame GraphBar Gauge
Derived charts73
Time SeriesHistogramStatus HistoryStatGaugeHoneyCombTracesNode GraphHeikin-AshiRenkoKagiPoint & FigureParetoIshikawaControl ChartBland-AltmanLollipopDumbbellSlopeBumpBack-to-BackWaterfallBulletFunnelMekkoForestBarcodeBeeswarmRidgelineHorizonSpectrogramAttention MapWaffleVennUpSetWarped WaffleWord CloudGanttSankeySankey MatrixTreemap ForceChord DiagramCircosArc DiagramAlluvialSankey FunnelDendrogramIcicleSunburstSpiderNightingale RoseParallel CoordinatesOscilloscopeEfficient FrontierPhase PortraitPoincaré MapBifurcationH-R DiagramRamachandranHarkerRoot LocusRadiation PatternQuiverHodographSmith ChartEye DiagramSequence LogoTernaryTernary ContourPiperStüveTephigramChoropleth

Charts/Science charts

Ramachandran

<Ramachandran /> · 10 examples

The two backbone angles of every amino-acid residue, on one square that shows which folds are possible.

Overview

A protein is a chain, and a chain can only bend where it has joints. Along the backbone each residue has two joints that matter, rotations called phi and psi. Spin them freely and you would expect any pair of angles to be possible. They are not. Atoms get in each other's way, so most of the square from minus 180 to plus 180 degrees is off limits, and the allowed patches are the shapes that proteins are actually built from.

G. N. Ramachandran drew this in 1963 with his colleagues C. Ramakrishnan and V. Sasisekharan at the University of Madras, working out by hand and by hard-sphere geometry which angle pairs avoid steric clashes. The idea was to predict from geometry which regions should be full and which empty, and as measured structures piled up the map held.

That is why the plot is still the first sanity check on a structure. If a refined model has residues in the forbidden zones, either the protein is doing something interesting or someone has made a mistake, and statistically the second is much more likely.

Props

API

<Ramachandran data={residues} phi={|r: &Residue| r.phi} psi={|r: &Residue| r.psi} />
PropTypeDefault
datarequired
phi, psiFn(&T) -> f64: backbone dihedral angles in degreesrequired
color, point_sizefirst series colour, 4.
tooltip, class

Both axes run from −180° to 180°.

Run them

10 examples

Press Run to load an example into the live render at the top of the page. Open one to read its code.

How to read it

  1. 01Look for the three main clusters and name them: alpha helix on the left towards the bottom, beta sheet in the top left, left-handed region on the right.
  2. 02Notice the empty areas. They are not missing data but forbidden territory. A lone point in one is worth looking up.
  3. 03Check the edges. A cluster that appears to be cut at ±180∘\pm 180^{\circ}±180∘ continues on the other side.
  4. 04Hover a point to read its exact angles, then trace it back to the residue in your own data.

When to use it, and when not to

Reach for it when

  • You want a first quality check on a protein model, a crystal structure or a simulation snapshot: are the angles in plausible places?
  • You want to show the secondary-structure content of a protein at a glance. A helical protein piles up in one patch, a beta-barrel in another.
  • You are following a simulation and want to see which residues moved from one region to another.
  • You teach structural biology and want students to see why helices and sheets exist.

Skip it when

  • You need a verdict on every residue. The chart shows a cloud, not a list of violations. Use a validation tool for per-residue outliers.
  • You are comparing proteins of very different sizes by eye. A small protein makes a sparse plot, and the shape means less.
  • You want to separate glycine, proline and general residues. Draw one chart per class, since their allowed regions differ.
  • Your angles are in radians. The axes are labelled in degrees and will show a tiny dot in the middle.

The math behind it

What phi and psi are

Both are dihedral (torsion) angles. For four consecutive atoms with bond vectors b1,b2,b3b_1, b_2, b_3b1​,b2​,b3​, the angle between the plane through the first three and the plane through the last three is the quantity below. For residue iii, φ\varphiφ is measured about the N to Cα\alphaα bond using atoms Ci−1_{i-1}i−1​, Ni_ii​, Cαi\alpha_iαi​, Ci_ii​, and ψ\psiψ about Cα\alphaα to C using Ni_ii​, Cαi\alpha_iαi​, Ci_ii​, Ni+1_{i+1}i+1​. This chart does not compute these; you supply the angles, in degrees, from your structure software.

n1=b1×b2,n2=b2×b3,θ=atan2⁡ ⁣((n1×n2)⋅b2∥b2∥,  n1⋅n2)n_1 = b_1\times b_2,\quad n_2 = b_2\times b_3,\qquad \theta = \operatorname{atan2}\!\left(\frac{(n_1\times n_2)\cdot b_2}{\lVert b_2\rVert},\; n_1\cdot n_2\right)n1​=b1​×b2​,n2​=b2​×b3​,θ=atan2(∥b2​∥(n1​×n2​)⋅b2​​,n1​⋅n2​)

What the chart does with them

Each residue becomes one point at (φ,ψ)(\varphi, \psi)(φ,ψ). Both axes are fixed to [−180∘,180∘][-180^{\circ}, 180^{\circ}][−180∘,180∘] with tick labels in degrees, whatever your data contain, so the square is always the whole square and a point near one edge is really near the opposite one too: the plane is a torus, and an angle of −179∘-179^{\circ}−179∘ is two degrees from +179∘+179^{\circ}+179∘, not 358.

Nothing is binned, smoothed or classified. The chart does not draw the allowed regions for you. The density of your own points is the picture. That is deliberate, because the allowed regions depend on the residue type and the reference set you trust.

Landmarks to expect

In a typical protein, residues gather in three places: the right-handed alpha helix near (−60∘,−45∘)(-60^{\circ}, -45^{\circ})(−60∘,−45∘), the beta-sheet region in the upper left around (−120∘,+130∘)(-120^{\circ}, +130^{\circ})(−120∘,+130∘), and a smaller patch for the left-handed helix near (+60∘,+45∘)(+60^{\circ}, +45^{\circ})(+60∘,+45∘). Glycine has no side chain and wanders almost anywhere; proline's ring locks φ\varphiφ near −63∘-63^{\circ}−63∘.

Real life usage

A structure that was too good to be true

Lucía was a crystallographer finishing a model of an enzyme that had resisted three previous attempts by her lab, a record that the lab kept on a whiteboard under the heading Previous Attempts. The data were at 2.1 angstroms, the fit statistics were improving, and she was one deposition form away from not thinking about it ever again.

Her refinement software said everything was converging nicely. That is exactly the kind of sentence that precedes a rejection. A refinement that fits the electron density can still be geometrically strange, because density maps are generous with the shape of a side chain and silent about the polite angle of a backbone.

She needed an independent, picture-sized opinion on whether the backbone was plausible, one that did not depend on how well the structure fitted the data. She had the angles for all 412 residues from the model file, and a plot that has been the standard for that question for sixty years.

She loaded them into <Ramachandran>. The picture was reassuring in the first glance: a tight, dense blob in the alpha-helix region, a long smear in the beta region, a few scattered points on the right. Then she looked at the empty square on the lower right, the one that should be all but deserted, and there were nine points in it.

Nine of 412 is two percent, more than a clean structure would tolerate. She hovered over each one and noted the angles. Seven of them belonged to one loop between two helices, and the loop sat in the weakest part of the density. The software had stretched the loop to fit the map and the backbone had paid for it.

She rebuilt the loop by hand, rotating three residues to sit in allowed regions, and refined again. The fit statistics barely moved, but the number of outliers fell from nine to one, a glycine that was entitled to be there. The structure went to the database and nobody reported a problem with it, which is the highest praise the process allows.

She took the old whiteboard heading down and wrote Previous Attempts: 3, Current Attempt: Fine.

Pitfalls

  • Radians versus degrees. The axes are fixed from minus 180 to plus 180 degrees. Convert before plotting.
  • Forgetting the wrap. The left and right edges are the same angle, as are the top and bottom. A cluster that is sliced by the border is one cluster.
  • Mixing residue types. Glycine and proline have different allowed regions from everything else. A single combined plot hides outliers of one type inside the permitted area of another.
  • Treating density as quality. A beautiful Ramachandran plot is necessary, not sufficient. Models can be refined into the allowed regions while the structure is still wrong.

From around the web

Watch and read

YouTubeHow to Interpret Ramachandran PlotsCatalyst UniversityWalks through the allowed and forbidden regions for phi and psi angles.
YouTubeUnderstanding PHI and PSI Angles, Ramachandran Plots, & Newman ProjectionsMolecular MemoryBuilds intuition for the backbone dihedral angles the plot is drawn from.

Keep going

Related charts

XY ChartWhen you want a general scatter without the fixed angular axes.Sequence LogoWhen you want to see which amino acids occupy each position in an alignment.HodographWhen the angle is a direction in a flow and you want the path through successive values, not a cloud.
PreviousH-R DiagramNextHarker

On this page

  • Live
  • Overview
  • API
  • Examples
  • How to read it
  • When to use it
  • The math
  • Story
  • Pitfalls
  • Watch and read
  • Related