NMR Automation

89
NMR Automation: Bayesil, NMRlib and beyond Philip Liu April 11, 2013

Transcript of NMR Automation

Page 1: NMR Automation

NMR Automation: Bayesil, NMRlib and beyond

Philip LiuApril 11, 2013

Page 2: NMR Automation

NMR Automation Overview• 1. NMR a) history b) Automation• 2. ChenoMX

a) Processorb) Profilerc) Compound Builder

• 3. XML• 4. NMRlib

Page 3: NMR Automation

1. NMR History• 1945 - First

experimentally observed by Felix Bloch (Stanford) and Edward Purcell (Harvard)

• 1946 - Spectra first published in January edition of Physical Review

• 1952 - Nobel prize for physics shared by Bloch and Purcell

Felix Bloch

Page 4: NMR Automation

NMR (Nuclear Magnetic Resonance)

• Nuclei of atomic isotopes (1H, 13C, 31P, 15N, 29Si etc.) interact with a static magnetic field

• Magnetic field makes spin states of nuclei differ in energy, and transitions between energy states can be observed

• Chemically distinct nuclei differ in resonance frequency in the same magnetic field –

Page 5: NMR Automation

NMR• Nuclei are aligned by a magnetic field • An oscillating, perpendicular magnetic field is

applied

Page 6: NMR Automation

NMR• Precession is a change in the

orientation of the rotational axis of a rotating body.

• Dependent on rate of spin, size and shape of gyro, strength of gravity.

• Find out the magnetic field strength to get the precession frequency (frequency it takes to get the nucleus precessing)

• 2nd magnetic field varies in time at the same rate as the precession - i.e. resonant with the nuclear motion (continuous wave NMR)

• Nuclei which are not aligned

Page 7: NMR Automation

• This non-equilibrium magnetisation can be induced, generally by applying a pulse of resonant radio-frequency close to the Larmor frequency of the nuclear spins.

• Fourier Transform NMR, free induction decay (FID) is the observable NMR signal generated by non-equilibrium nuclear spin magnetisation precessing about the magnetic field.

• The resultant oscillating magnetization vector of the nuclei induces a current in a pickup coil, creating an electrical signal oscillating at the NMR frequency (aka FID).

• The FID contains the vector sum of the NMR responses from all the excited spins

• To obtain the frequency-domain NMR spectrum (NMR absorption intensity vs. NMR frequency) this time-

NMR - FID

Page 8: NMR Automation

NMR Spectra• The chemical shift of a nucleus is the

difference between the resonance frequency of the nucleus and a standard, relative to the standard. (We use DSS: 4,4-dimethyl-4-silapentane-1-sulfonic acid)

Page 9: NMR Automation

NMR Automation• Why Automation?-time: countless hours

spent processing/profiling spectra

-inconsistencies between different users (user bias)

-misidentification in profiling

-user fatigue results in profiling errors

Page 10: NMR Automation

NMR AutomationAutomation-time: Faster (minutes vs.

hours)-consistent profiling-misidentification also

consistent, can correct and re-run spectra (saves time – hopefully!)

-fatigue is negligible

Page 11: NMR Automation

NMR Automation Workflow

ChenoMX: Processor

NMRlib

ChenoMX: Profiler

NMR

XML

Automation Standards (HMDB)

Samples

BAYESIL (Automation

Program)

.fids (raw ChenoMX: Compound

Builder

.fids (raw

Astounding results

Library creation

Sample processing

Page 12: NMR Automation

2. ChenoMX

Page 13: NMR Automation

ChenoMX Processor Overview (Pre-processing)

• 1. Open Processor, Open .fid file• 2. Phase • 3. Calibrate CSI• 4. Region Deletion (water removal)• 5. Baseline Correction– 6. Line Broadening (optional)

• 7. Shim Correction (optional)• 8. Calibrate CSI• Send to ChenoMX Profiler

Page 14: NMR Automation

ChenoMX Processor• Pre-processing of raw NMR files (.fid)• .cnx files

Page 15: NMR Automation

Open Processor

Page 16: NMR Automation

1. Open Spectra (.fid) - Ethanol

Page 17: NMR Automation

Phasing• Phasing corrects shifts that may have occurred

in data acquisition• Asymmetric peaks/clusters may be inverted• Larger phase shifts may have an oscillation to

the baseline• 3 phase angle controls: normal (1°), fine (0.1°)

and very fine (0.01°)

Sorry, William Shatner, not this kind of

Page 18: NMR Automation

2. Phase

Page 19: NMR Automation

First order phase

Zero order phase

Page 20: NMR Automation

Auto – Phase (sometimes works)

Page 21: NMR Automation
Page 22: NMR Automation

Make peaks symmetric by adjusting the sliders below (manual phasing), accept

Page 23: NMR Automation

3. Calibrate CSI (Chemical Shift/Shape Indicator)

Page 24: NMR Automation

Calibrate automatically, check DSS concentration, accept

Page 25: NMR Automation

4. Region Deletion (Water removal in versions older than 7.0)

Page 26: NMR Automation

Example: GlucoseCheck for peaks you may be deleting!!

Page 27: NMR Automation

You can click and drag the blue lines/region or type in values.No peaks inside blue area, accept!

Page 28: NMR Automation

5. Baseline CorrectionRemoves distortion in

spectrum Allows for accurate

quantification

Page 29: NMR Automation

Baseline Correction – auto linear

Page 30: NMR Automation

Baseline Correction – auto spline

Page 31: NMR Automation

• Move blue dots to centre of noise,

Page 32: NMR Automation

If you see wild distortions, do not panic. Move points to centre of noise and it will smooth out – hold control and click on the line to add points, hold shift and click to

Page 33: NMR Automation

Line Broadening (Optional)• Multiplies fid by an exponential

function before fid is Fourier transformed

• Increases linewidth in spectrum and smoothes out instrument noise

• Broader peaks, less noisy• Without broadening – sharper peaks

but baseline may be noisy

Page 34: NMR Automation

OPTIONAL6. Line

Page 35: NMR Automation

Line broadening: adjust Hz in

Page 36: NMR Automation

7. Shim Correction

Creates an ideal spectrum, removes lineshape distortions based

Page 37: NMR Automation

Shim correction -

Page 38: NMR Automation

8. Calibrate CSI

Page 39: NMR Automation

Calibrate CSI (Calibrate Automatically)

Page 40: NMR Automation

Congratulations, Processing completed, send to Profiler!

Page 41: NMR Automation

ChenoMX Profiler• Compound identification• .cnx file

Page 42: NMR Automation

Type compound name here (start with DSS), make sure correct library is selected

Page 43: NMR Automation

Black: SpectrumRed: Sum of profiled compoundsGreen: Subtraction lineBlue: Current compound selectedShortcuts: Space – automatic fit(bottom left will say it can’t fit if autofit doesn’t work)

Page 44: NMR Automation

These numbers will go green if there’s a good fit (NB: will not go green all the time even if fit well)Click these numbers to view/move different clustersNB: Name here is the compound selected

Page 45: NMR Automation

Bottom blue arrow will shift cluster selected on x axisRight side arrow will shift all clusters on y axis Clicking and dragging on the blue peak will move all clusters x + y

Page 46: NMR Automation

Fit clusters, note concentration of metabolite/DSS

Page 47: NMR Automation

Compound Builder• Creates library files for ChenoMX• .xcpd files

Page 48: NMR Automation

Open Compound Builder

Page 49: NMR Automation

Overlay .cnx file (ChenoMX file created by processor/profiler)

Page 50: NMR Automation

Open .cnx

Page 51: NMR Automation

Edit Compound Details: name, author, magnet frequency and concentration

Page 52: NMR Automation

Ethanol

DSS

Page 53: NMR Automation

Right click peak, add new peak to new cluster

Page 54: NMR Automation

Right click, add new peak to existing cluster

Page 55: NMR Automation

NB: Blue denotes peaks currently selected

Page 56: NMR Automation

Automatic fit, you can press this multiple times.

Page 57: NMR Automation

Message that program cannot fit any longer, ok.

Page 58: NMR Automation

Adjusting peaks manually, - matching blue peaks/red line (sum line) to match the black lines (actual spectra)

Page 59: NMR Automation

Can select and group clusters (Control + G) or right click

Page 60: NMR Automation

Success! Save.

Page 61: NMR Automation

3. XML • Extensible Markup

Language (.xml files)• A (document) markup

language is a modern system for annotating a document in a way that is syntactically distinguishable from the text. [Wikipedia]

• Advantage: Machine and Human readable

Page 62: NMR Automation

Conversion from .xcpd XML file

Page 63: NMR Automation
Page 64: NMR Automation

XML• File Header (red – edit these fields)• <name>Ethanol</name>• <ID>HMDB00108</ID>• <resonatingElement>hydrogen</

resonatingElement>• <libraryVersion>experimental</

libraryVersion>• <metabolicGroup>all</metabolicGroup>• <type>hnmrv</type>• <magnetFreq>500</magnetFreq>• <quantification>1.2863</quantification>*

Page 65: NMR Automation

More XML

• <clusters>• <cluster>• <center>1.17166</center>• <lowerBound>1.17166</

lowerBound>• <upperBound>1.17166</

upperBound>• <peaks>• <peak>• <center>1.15747</center>

Bounds limit how far the cluster centres can shift

Peaks are described by their centres,

Page 66: NMR Automation

BAYESIL • “Siamak’s Program”• Processes NMR spectra similarly to

ChenoMX – phases, baseline corrects etc.

• Global fit – uses area under the curve to fit spectra

• Future improvements: UI (User interface), flagging false positives/negatives, concentration corrections,

Page 67: NMR Automation

BAYESIL

Page 68: NMR Automation

Automated

Human

Page 69: NMR Automation

4. NMRlib• “Roman’s Program”• GUI (Graphical User Interface), web

based application (nmrlib.wishartlab.com) that uses BAYESIL to process spectra and create XML files

• Faster than ChenoMX approach, eliminates typographical errors

• Doesn’t allow for overlapping peaks

NMRlib

Page 70: NMR Automation
Page 71: NMR Automation

NMRlib Search, sort

files by user, date, name, magnet frequency,

Page 72: NMR Automation

NMRlib• Fill in fields, Name,

HMDBID, NMR Freq. Metabolite concentration (as measured by ChenoMX or experimental), and ratio of [metabolite]/[DSS]

• -Spectrum files must be .zip files and the fid must be in a folder named HMDBxxxxx.fid eg.

Page 73: NMR Automation

NMRlibPick peaks

Page 74: NMR Automation

Min. peak height: deletes peaks below __

Noise factor: higher # = shows less points

lower # = shows more

Peaks picked by program, DSS is

Page 75: NMR Automation

• Peaklist: delete peaks

Page 76: NMR Automation

Adding peaks (click spectra)

1

2

Page 77: NMR Automation

Peak added!

Page 78: NMR Automation

Name clusters, save

Page 79: NMR Automation

Alternative method of creating clusters: input range (ppm)

Page 80: NMR Automation

Confirm clusters

Page 81: NMR Automation

Run fitting!

Page 82: NMR Automation

Success? Not so fast! Examine fit

Page 83: NMR Automation

1. Check fit

2. Approval 3. back

Page 84: NMR Automation

Right click HMDB0008.xml, save link as

Page 85: NMR Automation

Save, SUCCESS!

Page 86: NMR Automation

Future • Finish making xmls for all these

compounds • Profile Serum (~40 cmpds) and Urine

(200+ compounds)

Page 87: NMR Automation

Thank you! (You can wake up now)

• Dr. Wishart• Igor, Trent, Rupa, Edison• Siamak, Roman• Wishartlab

Page 88: NMR Automation

Questions?

Page 89: NMR Automation

References• http://chemnmr.colorado.edu/moreinfo/whatisnmr.html• http://www.google.ca/imgres?imgurl=http%3A%2F%2Fwww.riken.jp%2Fengn%2Fr-

world%2Finfo%2Frelease%2Fnews%2F2003%2Faug%2Fimage%2Fefg-2.jpg&imgrefurl=http%3A%2F%2Fwww.riken.jp%2Fengn%2Fr-world%2Finfo%2Frelease%2Fnews%2F2003%2Faug%2Findex.html&docid=IDBu8C4qtKDVSM&tbnid=npBbvuV7tHmVLM&w=246&h=146&ei=mCZnUc2DB6ayigKl04GwDQ&ved=0CAUQxiAwAw&iact=ricl

• http://edwebproject.org/india/pics/swing.jpg• http://www.abc.net.au/science/articles/2011/03/29/3175747.htm• http://www.planetseed.com/node/15291• http://en.wikipedia.org/wiki/File:Earth_precession.svg• http://www.physiopro.co.za/the-head-work-behind-your-headache/#• http://4.bp.blogspot.com/-roZe_7I5lJ4/TWxGXMuRoDI/AAAAAAAABSE/

fe5qFP_iGBw/s1600/BERTI_robot.jpg• http://i.current.com/images/asset/900/821/06/4Fo01x.jpg• http://i.telegraph.co.uk/multimedia/archive/00802/460-basil_802346c.jpg• http://www.chenomx.com/support/img/page58/Chenomx%20NMR%20Suite

%207.1.pdf