-
Notifications
You must be signed in to change notification settings - Fork 1
/
QQ_CPMG.2.cw
511 lines (419 loc) · 10.6 KB
/
QQ_CPMG.2.cw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
/* QQ CPMG (Chris Waudby Aug 2021)
based on 13CH3_1H_TQ_CPMG_ty_800_cpz
varying inter-pulse spacing
This pulse sequence will allow one to perform the following experiment:
2D 1H/13C to measure exchange via 13CH3 CPMG
Assumes that sample is specifically 13CH3 labeled
1H: O1 on methyls (0.8 ppm)
pwh = p1 1H pw90 @ power level pl1 highest power
pwh_cp = p15 1H pw90 @ power level pl15 for CPMG pulses
13C: O2 centre at 20 ppm
pwc = p2 13C pw90 @ power level pl2 highest power
power level pl21 is used for 13C decoupling.
2H: O4 centre at ~0.8 ppm (methyl 1H resonances)
pwd = p4 2H pw90 @ power level pl4 high power
power level pl41 is used for 2H waltz-16 decoupling.
Note: 2H decoupling only necessary for measuring nuCPMG < 100 Hz
Recommend: use -Dcomp_flg to apply composite 180o CPMG pulses
Written by T. Yuwen on Nov 21, 2016
*/
prosol relations=<triple>
#include <Avance.incl>
#include <Grad.incl>
#include <Delay.incl>
/***********************/
/* Define pulses */
/***********************/
define pulse dly_pg1 /* Messerle purge pulse */
"dly_pg1=2m"
define pulse dly_pg2 /* Messerle purge pulse */
"dly_pg2=3.4m"
define pulse pwh
"pwh=p1" /* 1H hard pulse at power level p1 (tpwr) */
define pulse pwc
"pwc=p2" /* 13C pulse at power level pl2 (dhpwr) */
#ifdef Ddec
define pulse pwd
"pwd=p4" /* 2H pulse at power pl4 */
#endif
define pulse pwh_cp /* 1H CPMG pulse power level */
"pwh_cp=p15"
"spoffs10=cnst10-o1"
/***********************/
/* Gradient pulses */
/***********************/
"p50=1000u"
"p51=400u"
"p52=600u"
"p53=300u"
"p54=500u"
"p57=750u"
/**********************/
/* Define CPMG pulses */
/**********************/
#ifdef comp_flg
#define cpmg_F (pwh_cp ph12 pwh_cp*2.66667 ph11 pwh_cp ph12):f1
#define cpmg_R (pwh_cp ph12 pwh_cp*2.66667 ph11 pwh_cp ph12):f1
"cnst51=2.333335"
#else
#define cpmg_F (pwh_cp*2.0 ph11):f1
#define cpmg_R (pwh_cp*2.0 ph11):f1
"cnst51=1.0"
#endif
/************************/
/* Define delays */
/************************/
"in0=inf2/2"
"d11=30m"
"d3=2m"
"d4=2m"
/************************/
/* Define f1180 */
/************************/
"d0=larger((in0)/2 - 2.0*pwh_cp, 2e-7)"
define delay taua
"taua=d3" /* d3 ~ 1.8-2ms ~ 1.0s/(4*125.3)" ~ 1 / 4J(CH) */
define delay taub
"taub=d4" /* d4 = 1/4JCH exactly */
define delay time_T2
"time_T2=d6" /* CPMG duration <= 40 ms */
/*************************************/
/* Define parameters related to CPMG */
/*************************************/
define delay tauCPMG
define delay tauCPMG1
define delay tauCPMG2
define list<loopcounter> ncyc_cp=<$VCLIST>
define loopcounter ncyc_max /* max value of ncyc used */
"ncyc_max=l8"
"cnst31=1/time_T2" /* minimum nuCPMG for given time_T2 */
"d30 = 4u" ; time between compensatory CPMG pulses
/******************************************************/
/* Assign cnsts to check validity of parameter ranges */
/******************************************************/
"cnst15=plw15" /* tpwrcp - power level for 1H CPMG pulses */
"cnst21=plw21" /* dpwr pl21 - set max at 2.0W */
/****************************/
/* Initialize loop counters */
/****************************/
"l1=0"
"l2=0"
"l3=0"
"acqt0=0" /* select 'DIGIMOD = baseopt' to execute */
aqseq 312
1 ze
#ifdef Ddec
; d11 LOCKDEC_ON /* Not required for AvanceIII-HD */
50u LOCKH_ON
d11 H2_PULSE
2u pl41:f4
#endif /*Ddec*/
2 d11 do:f2
/****************************************/
/* Continue to check run time variables */
/****************************************/
"l2 = (trunc(ncyc_cp[l1] + 0.3))"
#ifdef cnstpulses
"l3 = ncyc_max - l2"
#else
"l3 = 0"
#endif
if "l2 != 0"
{
"tauCPMG = ((time_T2*0.25 - ((d30+pwh_cp)*l3)) / l2)"
}
else
{
"tauCPMG = time_T2*0.25"
; skip compensation pulses
"l3=0"
}
"tauCPMG1 = tauCPMG - pwh_cp*2.0*cnst51"
"tauCPMG2 = d30"
20u pl1:f1 pl2:f2
#ifdef Ddec
d11 H2_LOCK
6m LOCKH_OFF
#endif /*Ddec*/
/******************/
/* Messerle purge */
/******************/
20u pl11:f1
(dly_pg1 ph26):f1
20u
(dly_pg2 ph27):f1
; off-resonance presat
30u fq=cnst10(bf hz):f1
30u pl10:f1
d1 cw:f1 ph26
4u do:f1
30u fq=0:f1
#ifdef Ddec
50u LOCKH_ON
15u H2_PULSE
#endif
/****************************************/
/* Destroy 13C equlibrium magnetization */
/****************************************/
(pwc ph26):f2
#ifdef Ddec
20u UNBLKGRAMP
#else
20u UNBLKGRAD
#endif
2u
p50:gp0
d16
/***********************/
/* Create TQ coherence */
/***********************/
20u pl15:f1
2u rpp11 rpp12
(pwh_cp ph1):f1
2u
p51:gp1
d16
"DELTA = taua - 2u - p51 - d16 - pwh_cp*2.0/PI"
DELTA
(center (pwh_cp*2 ph1):f1 (pwc*2 ph26):f2)
2u
p51:gp1
d16
"DELTA = taua - 2u - p51 - d16"
DELTA
(pwc ph3):f2
2u
p52:gp2
d16
"DELTA = taub - 2u - p52 - d16"
DELTA
(center (pwh_cp*2 ph1):f1 (pwc*2 ph26):f2)
2u
p52:gp2
d16
#ifdef Ddec
"DELTA = taub - 2u - p52 - d16 - 2u - pwd - 2u - 2u"
#else
"DELTA = taub - 2u - p52 - d16"
#endif
DELTA
#ifdef Ddec
2u pl4:f4
(pwd ph27):f4
2u pl41:f4
(2u cpds4 ph26):f4
#endif
; (pwc ph26):f2
(pwh_cp ph1):f1
/*********************************/
/* The first half of CPMG period */
/*********************************/
if "l2 > 0" {
3 tauCPMG1
cpmg_F
tauCPMG1 ipp11 ipp12
lo to 3 times l2
}
#ifdef cnstpulses
if "l3 > 0" {
4 tauCPMG2
cpmg_F
tauCPMG2 ipp11 ipp12
lo to 4 times l3
}
#endif
/*****************************/
/* The central 180o 1H pulse */
/*****************************/
(center (pwh_cp*2 ph2):f1 (pwc*2 ph25):f2 )
/**********************************/
/* The second half of CPMG period */
/**********************************/
#ifdef cnstpulses
if "l3 > 0" {
5 tauCPMG2 dpp11 dpp12
cpmg_R
tauCPMG2
lo to 5 times l3
}
#endif
if "l2 > 0" {
6 tauCPMG1 dpp11 dpp12
cpmg_R
tauCPMG1
lo to 6 times l2
}
/********************************************/
/* End of CPMG - start back-transfer & HMQC */
/********************************************/
(pwh_cp ph26):f1
; (pwc ph3):f2
#ifdef Ddec
2u do:f4
2u pl4:f4
(pwd ph29):f4
#endif
2u
p53:gp3
d16
#ifdef Ddec
"DELTA = taub - 2u - 2u - pwd - 2u - p53 - d16"
#else
"DELTA = taub - 2u - p53 - d16"
#endif
DELTA
/********/
/* HMQC */
/********/
(pwc*2 ph26):f2
d0
(pwh_cp ph29 pwh_cp*2 ph26 pwh_cp ph29):f1
d0
2u
p53:gp3
d16
"DELTA = taub - 2u - p53 - d16"
DELTA
(pwc ph4):f2
"DELTA = pwc*2.0"
DELTA
(pwh_cp ph27):f1
2u
p54:gp4
d16
/****************************************************************/
/* C->H back transfer, use wtg_flg for better water suppression */
/****************************************************************/
20u pl1:f1
(pwh ph26):f1
2u
p57:gp7
d16
"DELTA = taua - 2u - p57 - d16 - p10 - 1u - larger(pwh,pwc) - pwh*2.0/PI"
DELTA
(p10:sp10 ph28):f1
1u pl1:f1
(center (pwh*2 ph26):f1 (pwc*2 ph27):f2 )
1u
(p10:sp10 ph28):f1
"DELTA = taua - p57 - d16 - p10 - 1u - larger(pwh,pwc) - 2*pwc - 8u"
DELTA
p57:gp7
d16
#ifdef Ddec
4u BLKGRAMP
#else
4u BLKGRAD
#endif
(pwc ph26):f2
(pwc ph5):f2
4u pl21:f2 /* lower power for 13C decoupling */
/********************************/
/* Signal detection and looping */
/********************************/
go=2 ph31 cpds2:f2
d11 do:f2 mc #0 to 2
F1QF(iu1)
F2PH(ru1 & ip4, id0); & ip31*2)
; F1QF(calclc(l1,1))
; F2PH(calph(ph4,-90), caldel(d0,+in0) & calph(ph31,+180))
#ifdef Ddec
d11 H2_LOCK
d11 LOCKH_OFF
; d11 LOCKDEC_OFF /* use statement for earlier hardware */
#endif
HaltAcqu, 1m
exit
ph0=1
ph1=(6) 0 1 2 3 4 5
ph2=1 3
ph3=0 0 0 0 0 0
2 2 2 2 2 2
ph4=0
ph5=0 2
ph11={0 1 0 1 1 0 1 0}^2
ph12={1 2 1 2 2 1 2 1}^2
ph25=0 0 0 0 0 0
0 0 0 0 0 0
2 2 2 2 2 2
2 2 2 2 2 2
ph26=0
ph27=1
ph28=2
ph29=3
ph31=0 2 0 2 0 2
2 0 2 0 2 0
;pl1 : tpwr - power level for pwh
;pl2 : dhpwr - power level for 13C pulse pwc (p2)
;pl4 : power level for 2H high power pulses
;pl10 : tsatpwr - power level for presat
;pl11 : tpwrmess - power level for Messerle purge [5 kHz]
;pl15 : power level for 1H CPMG pulses pwh_cp
;pl21 : dpwr - power level for 13C decoupling cpd2
;pl41 : power level for 2H waltz decoupling
;p10 : 1000usec water flip-back
;sp10 : water flip-back (on H2O)
;spw14 : power level for eburp1 pulse
;spnam14: eburp1 pulse on water
;p1 : pwh
;p2 : pwc
;p4 : 2H high power pulse
;p14 : eburp1 pulse width, typically 7000u
;p15 : 1H pw for CPMG pulses
;p50 : gradient pulse 50 [1000 usec]
;p51 : gradient pulse 51 [400 usec]
;p52 : gradient pulse 52 [600 usec]
;p53 : gradient pulse 53 [300 usec]
;p54 : gradient pulse 54 [500 usec]
;p55 : gradient pulse 55 [300 usec]
;p56 : gradient pulse 56 [500 usec]
;p57 : gradient pulse 57 [750 usec]
;pcpd2 : 13C pulse width for 13C decoupling
;pcpd4 : 2H pulse width for 2H decoupling
;d1 : Repetition delay D1
;d3 : taua - set to 1/4JCH = 2.0 ms
;d4 : taub - set to 1/4JHC = 2.0 ms
;d6 : time_T2 CPMG duration <= 40ms
;d11 : delay for disk i/o, 30ms
;d16 : gradient recovery delay, 200us
;d19: delay for binomial water suppression, = 1/(4*|cnst1|)
;cpd2 : 13C decoupling during t2 according to program defined by cpdprg2
;cpd4 : 2H decoupling during t1
;cpdprg2 : 13C decoupling during t2
;cpdprg4 : 2H decoupling during t1
;cnst1 : offset of methyls from water (0.8 ppm - 4.7 ppm, in Hz)
;cnst4 : power level for 2H high power pulses
;cnst10: water frequency for presat
;cnst14 : power level in w for 1H selective pulse
;cnst15 : power in w for 1H CPMG pulses
;cnst21 : power in w for 13C dec
;cnst31 : minimum nuCPMG for given time_T2
;cnst41 : power level for 2H decoupling
;l1 : counter for the ncyc_cp values for cpmg
;l2 : actual value of ncyc_cp
;l3 : number of compensation pulses (= ncyc_max - l2)
;l8 : ncyc_max
;inf1 : 1/SW(X) = 2*DW(X)
;in0 : 1/(2*SW(x))=DW(X)
;nd0 : 2
;ns : 12*n
;FnMODE : States-TPPI, TPPI, States
;for z-only gradients:
;gpz0: 20%
;gpz1: 25%
;gpz2: 30%
;gpz3: -25%
;gpz4: 50%
;gpz5: -40%
;gpz6: -75%
;gpz7: -80%
;use gradient files:
;gpnam0: SMSQ10.32
;gpnam1: SMSQ10.32
;gpnam2: SMSQ10.32
;gpnam3: SMSQ10.32
;gpnam4: SMSQ10.32
;gpnam5: SMSQ10.32
;gpnam6: SMSQ10.32
;gpnam7: SMSQ10.32
;zgoptns: Dcnstpulses, DDdec, Dcomp_flg