-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinsulin_tutorial.html
253 lines (194 loc) · 16 KB
/
insulin_tutorial.html
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
<!DOCTYPE html>
<html lang="en" data-content_root="./">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Insulin tutorial — xia2 documentation</title>
<link rel="stylesheet" type="text/css" href="_static/pygments.css?v=fa44fd50" />
<link rel="stylesheet" type="text/css" href="_static/alabaster.css?v=12dfc556" />
<link rel="stylesheet" href="_static/xia2.css" type="text/css" />
<script src="_static/documentation_options.js?v=5929fcd5"></script>
<script src="_static/doctools.js?v=9a2dae69"></script>
<script src="_static/sphinx_highlight.js?v=dc90522c"></script>
<link rel="index" title="Index" href="genindex.html" />
<link rel="search" title="Search" href="search.html" />
<link rel="next" title="Processing multi-crystal datasets with xia2" href="multi_crystal.html" />
<link rel="prev" title="Introductory example" href="introductory_example.html" />
<link rel="stylesheet" href="_static/custom.css" type="text/css" />
</head><body>
<!-- <div class="logoheader container"> -->
<!-- <a href="index.html"> -->
<!-- <img class="logoheader" alt="DIALS" src="_static/dials_header.png" /> -->
<!-- </a> -->
<!-- </div> -->
<div class="document">
<div class="documentwrapper">
<div class="bodywrapper">
<div class="body" role="main">
<section id="insulin-tutorial">
<h1>Insulin tutorial<a class="headerlink" href="#insulin-tutorial" title="Link to this heading">¶</a></h1>
<p>This tutorial uses test images which are available from the links below.
Thanks to John Cowan for providing this test data!</p>
<ul class="simple">
<li><p><a class="reference external" href="ftp://ftp.ccp4.ac.uk/xia/demo.zip">Windows (as .zip file)</a></p></li>
<li><p><a class="reference external" href="ftp://ftp.ccp4.ac.uk/xia/demo.tar.bz2">Unix (as .tar.bz2 file)</a></p></li>
<li><p><a class="reference external" href="ftp://ftp.ccp4.ac.uk/xia/demo.tar.gz">Unix (as .tar.gz file)</a></p></li>
</ul>
<p>There are two ways of running xia2 - with and without an input file, an
example of which follows below. If you just run:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">xia2</span> <span class="o">/</span><span class="n">my</span><span class="o">/</span><span class="n">data</span><span class="o">/</span><span class="n">are</span><span class="o">/</span><span class="n">here</span>
</pre></div>
</div>
<p>xia2 will do something sensible - in this case process all of the data, scale
all measurements as if they are from a single crystal and merge the data from
each wavelength separately. If only one wavelength is present xia2 will assume
that the data are a native data set - to separate anomalous pairs provide a
heavy atom (at this time it doesn’t matter what it is…) i.e.:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">xia2</span> <span class="n">atom</span><span class="o">=</span><span class="n">se</span> <span class="o">/</span><span class="n">my</span><span class="o">/</span><span class="n">data</span><span class="o">/</span><span class="n">are</span><span class="o">/</span><span class="n">here</span>
</pre></div>
</div>
<p>Other options are (type just xia2 to get this list):</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">Command</span><span class="o">-</span><span class="n">line</span> <span class="n">options</span> <span class="n">to</span> <span class="n">xia2</span><span class="p">:</span>
<span class="p">[</span><span class="n">pipeline</span><span class="o">=</span><span class="n">XXX</span><span class="p">]</span> <span class="n">select</span> <span class="n">processing</span> <span class="n">pipeline</span><span class="p">,</span> <span class="k">with</span> <span class="n">XXX</span> <span class="n">one</span> <span class="n">of</span><span class="p">:</span>
<span class="mi">3</span><span class="n">d</span> <span class="n">XDS</span><span class="p">,</span> <span class="n">XSCALE</span>
<span class="mi">3</span><span class="n">dii</span> <span class="n">XDS</span><span class="p">,</span> <span class="n">XSCALE</span><span class="p">,</span> <span class="n">using</span> <span class="nb">all</span> <span class="n">images</span> <span class="k">for</span> <span class="n">autoindexing</span>
<span class="n">dials</span> <span class="n">DIALS</span>
<span class="n">dials</span><span class="o">-</span><span class="n">aimless</span> <span class="n">DIALS</span> <span class="n">but</span> <span class="n">scale</span> <span class="k">with</span> <span class="n">AIMLESS</span>
<span class="p">[</span><span class="n">xinfo</span><span class="o">=</span><span class="n">foo</span><span class="o">.</span><span class="n">xinfo</span><span class="p">]</span> <span class="ow">or</span> <span class="p">[</span><span class="o">/</span><span class="n">path</span><span class="o">/</span><span class="n">to</span><span class="o">/</span><span class="n">images</span><span class="p">]</span>
<span class="p">[</span><span class="n">d_min</span><span class="o">=</span><span class="mf">2.8</span><span class="p">]</span> <span class="p">(</span><span class="n">say</span><span class="p">,</span> <span class="n">applies</span> <span class="n">to</span> <span class="nb">all</span> <span class="n">sweeps</span><span class="p">)</span>
<span class="p">[</span><span class="n">nproc</span><span class="o">=</span><span class="mi">4</span><span class="p">]</span> <span class="n">run</span> <span class="n">on</span> <span class="mi">4</span> <span class="n">processors</span> <span class="p">(</span><span class="n">automatic</span><span class="p">)</span>
<span class="p">[</span><span class="n">space_group</span><span class="o">=</span><span class="n">C2</span><span class="p">]</span> <span class="p">(</span><span class="k">for</span> <span class="n">example</span><span class="p">)</span>
<span class="p">[</span><span class="n">unit_cell</span><span class="o">=</span><span class="mi">50</span><span class="p">,</span><span class="mi">50</span><span class="p">,</span><span class="mi">50</span><span class="p">,</span><span class="mi">90</span><span class="p">,</span><span class="mi">90</span><span class="p">,</span><span class="mi">90</span><span class="p">]</span> <span class="p">(</span><span class="k">for</span> <span class="n">example</span><span class="p">)</span>
<span class="p">[</span><span class="n">reverse_phi</span><span class="o">=</span><span class="kc">True</span><span class="p">]</span>
<span class="p">[</span><span class="n">mosflm_beam_centre</span><span class="o">=</span><span class="n">x</span><span class="p">,</span><span class="n">y</span><span class="p">]</span> <span class="p">(</span><span class="ow">in</span> <span class="n">mm</span><span class="p">,</span> <span class="n">following</span> <span class="n">the</span> <span class="n">MOSFLM</span> <span class="n">convention</span><span class="p">,</span> <span class="n">applies</span> <span class="n">to</span> <span class="nb">all</span> <span class="n">sweeps</span><span class="p">)</span>
<span class="p">[</span><span class="n">dials</span><span class="o">.</span><span class="n">fast_mode</span><span class="o">=</span><span class="kc">True</span><span class="p">]</span> <span class="k">for</span> <span class="n">very</span> <span class="n">fast</span> <span class="n">processing</span>
<span class="p">[</span><span class="n">atom</span><span class="o">=</span><span class="n">se</span><span class="p">]</span> <span class="p">(</span><span class="n">say</span><span class="p">)</span> <span class="o">-</span> <span class="n">this</span> <span class="ow">is</span> <span class="k">for</span> <span class="n">xia2setup</span>
<span class="p">[</span><span class="n">project</span><span class="o">=</span><span class="n">foo</span><span class="p">]</span> <span class="p">(</span><span class="n">say</span><span class="p">)</span> <span class="o">-</span> <span class="n">this</span> <span class="ow">is</span> <span class="k">for</span> <span class="n">xia2setup</span>
<span class="p">[</span><span class="n">crystal</span><span class="o">=</span><span class="n">bar</span><span class="p">]</span> <span class="p">(</span><span class="n">say</span><span class="p">)</span> <span class="o">-</span> <span class="n">this</span> <span class="ow">is</span> <span class="k">for</span> <span class="n">xia2setup</span>
<span class="n">Sensible</span> <span class="n">command</span> <span class="n">lines</span><span class="p">:</span>
<span class="n">xia2</span> <span class="p">(</span><span class="n">pipeline</span><span class="o">=</span><span class="n">dials</span><span class="o">|</span><span class="mi">3</span><span class="n">d</span><span class="o">|..</span><span class="p">)</span> <span class="o">-</span><span class="n">xinfo</span> <span class="n">foo</span><span class="o">.</span><span class="n">xinfo</span>
<span class="n">xia2</span> <span class="n">project</span><span class="o">=</span><span class="n">foo</span> <span class="n">crystal</span><span class="o">=</span><span class="n">bar</span> <span class="p">(</span><span class="n">pipeline</span><span class="o">=</span><span class="n">dials</span><span class="o">|</span><span class="mi">3</span><span class="n">d</span><span class="o">|..</span><span class="p">)</span> <span class="o">/</span><span class="n">data</span><span class="o">/</span><span class="n">path</span>
</pre></div>
</div>
<p>Running ths way some assumptions are made:</p>
<ul class="simple">
<li><p>All images are from one crystal only.</p></li>
<li><p>The scan, if present, was the one used to select the wavelengths for data
collection. If more than one is present, the alphabetically latest one will
be used.</p></li>
<li><p>The sequence file, if present, should be in the one letter form and all
comment lines should begin with a character not in A-Z. Again the
alphabetically latest sequence file will be used.</p></li>
<li><p>If the sequence file is provided, and the atom is “se”, then xia2setup will
assume that you are doing a SeMet experiment and will provide an appropriate
number of atoms per monomer - though you will still have to uncomment this
to include it, in case it has guessed wrong.</p></li>
<li><p>If you want to combine data from a number of crystals in the same .xinfo
file, then you will need to copy out all text from
<code class="samp docutils literal notranslate"><span class="pre">BEGIN</span> <span class="pre">CRYSTAL</span></code> to <code class="samp docutils literal notranslate"><span class="pre">END</span> <span class="pre">CRYSTAL</span></code> from one .xinfo file to the
other.</p></li>
</ul>
<p>You should then load automatic.xinfo in your favourite editor, and check that
the sequence looks correct and that the names are sensible as well as checking
that the epoch numbers are set correctly and also that the wavelengths and
beam centres are correct. If you provided a heavy atom there is a place to
say how many to look for.</p>
<p>The other mechanism for running xia2 is via a xinfo file, which explains the
layout of the data set to xia2 explicitly. This is helpful if you wish to only
process a subset of the measurements, or want to process data for an RIP
experiment. A simple example of xinfo file follows below, and more complex
examples can be found here:</p>
<ul class="simple">
<li><p><a class="reference download internal" download="" href="_downloads/d0a59567cd5caf5ddbc2b2aa45008948/NATIVE.xinfo"><code class="xref download docutils literal notranslate"><span class="pre">Native</span> <span class="pre">data</span></code></a></p></li>
<li><p><a class="reference download internal" download="" href="_downloads/0caadb28876ee9361abe5749b421432f/SAD.xinfo"><code class="xref download docutils literal notranslate"><span class="pre">SAD</span> <span class="pre">data</span></code></a></p></li>
<li><p><a class="reference download internal" download="" href="_downloads/d39a8e35011226d0609996c4040d0661/MAD.xinfo"><code class="xref download docutils literal notranslate"><span class="pre">MAD</span> <span class="pre">data</span></code></a></p></li>
</ul>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span>! This is a demonstration .xinfo file which illustrates how to cope
! with a simple case - this example is a native cubic insulin data
! set measured on 14.2 at the SRS
BEGIN PROJECT DEMONSTRATION
BEGIN CRYSTAL INSULIN
BEGIN AA_SEQUENCE
! this is only really needed at the moment for assessing the solvent
! content and number of residues in the asu
GIVEQCCASVCSLYQLENYCN
FVNQHLCGSHLVEALYLVCGERGFFYTPKA
END AA_SEQUENCE
BEGIN WAVELENGTH NATIVE
! this doesn't have to be here - if it is
! not included then the values from
! the image headers will be used - however
! if it is there then it should
! be correct!
WAVELENGTH 0.979000
! in here you can also have
! F' value
! F'' value
END WAVELENGTH NATIVE
BEGIN SWEEP NATIVE
WAVELENGTH NATIVE
IMAGE insulin_1_001.img
! you will probably need to change this -
! this is the only thing which
! you will need to change for the
! demonstration data set
DIRECTORY /media/data1/graeme/demo/
! additionally you can add the following
! information - if it is wrong in the headers
! BEAM x y (mm)
! DISTANCE z (mm)
! this describes the order in which
! the sweeps were collected -
! it usually comes from the image header
! if that information is in there
! EPOCH 5
! you can also add this to only reduce
! a subset of the data
! START_END 1 30 (image numbers)
END SWEEP
END CRYSTAL INSULIN
END PROJECT DEMONSTRATION
</pre></div>
</div>
</section>
</div>
</div>
</div>
<div class="sphinxsidebar" role="navigation" aria-label="Main">
<div class="sphinxsidebarwrapper">
<p class="logo">
<a href="index.html">
<img class="logo" src="_static/xia2-new-logo.gif" alt="Logo" />
</a>
</p>
<h3>Navigation</h3>
<ul class="current">
<li class="toctree-l1"><a class="reference internal" href="quick_start.html">Getting started</a></li>
<li class="toctree-l1"><a class="reference internal" href="using_xia2.html">Using xia2</a></li>
<li class="toctree-l1"><a class="reference internal" href="installation.html">Installation</a></li>
<li class="toctree-l1"><a class="reference internal" href="introductory_example.html">Introductory example</a></li>
<li class="toctree-l1 current"><a class="current reference internal" href="#">Insulin tutorial</a></li>
<li class="toctree-l1"><a class="reference internal" href="multi_crystal.html">Multi-crystal data</a></li>
<li class="toctree-l1"><a class="reference internal" href="serial_crystallography.html">Serial-crystallography</a></li>
<li class="toctree-l1"><a class="reference internal" href="program_output.html">Program output</a></li>
<li class="toctree-l1"><a class="reference internal" href="parameters.html">Parameters</a></li>
<li class="toctree-l1"><a class="reference internal" href="comments.html">Comments</a></li>
<li class="toctree-l1"><a class="reference internal" href="background.html">History</a></li>
<li class="toctree-l1"><a class="reference internal" href="acknowledgements.html">Acknowledgements</a></li>
<li class="toctree-l1"><a class="reference internal" href="release_notes.html">Release notes</a></li>
<li class="toctree-l1"><a class="reference internal" href="license.html">License</a></li>
</ul>
</div>
</div>
<div class="clearer"></div>
</div>
<div class="footer container">
<a href="http://www.diamond.ac.uk/"><img class="logofooter" alt="Diamond" src="_static/diamond_logo.png" /></a>
<a href="http://dials.diamond.ac.uk/"><img class="logofooter" alt="DIALS" src="_static/dials_logo_fx_transparent_bg.png" /></a>
<a href="http://www.ccp4.ac.uk/"><img class="logofooter" alt="CCP4" src="_static/CCP4-logo-plain.png" /></a>
</div>
<div class="footer">
©2020, Diamond Light Source.
</div>
</body>
</html>