subset of reflections from mtz object
Hi, I'm not as well versed using iotbx.mtz as I ought to be. I'd like to make a subset of reflections from an mtz file bounded by a chosen dmin and dmax, i.e. a resolution shell of reflections. What is the best way of doing this in python? Many thanks, Rob -- Robert Oeffner, Ph.D. Research Associate, The Read Group Department of Haematology, Cambridge Institute for Medical Research University of Cambridge Cambridge Biomedical Campus Wellcome Trust/MRC Building Hills Road Cambridge CB2 0XY www.cimr.cam.ac.uk/investigators/read/index.html tel: +44(0)1223 763234
Hi Rob, from iotbx import mtz mtz_obj = mtz.object(file_name="file_name.mtz") miller_arrays = mtz_obj.as_miller_arrays() for miller_array in miller_arrays: miller_array_truncated = miller_array.resolution_filter(d_min=2, d_max=5) For more use example have a look at cctbx_project/iotbx/mtz/tst.py and as always "print dir(miller_array)" is your friend! Hope this helps! Pavel On 7/18/18 08:46, Robert Oeffner wrote:
Hi,
I'm not as well versed using iotbx.mtz as I ought to be.
I'd like to make a subset of reflections from an mtz file bounded by a chosen dmin and dmax, i.e. a resolution shell of reflections. What is the best way of doing this in python?
Many thanks,
Rob
participants (2)
-
Pavel Afonine
-
Robert Oeffner