[cctbxbb] How to extract I(+) and I(-) from miller array?
Pavel Afonine
pafonine at lbl.gov
Tue Jun 9 12:07:41 PDT 2020
Hi Blaine,
this is correct, this is how anomalous data are read in and stored in an
instance of miller.array class. In this case I(+) and I(-) will be
stored in one miller_array, anomalous_flag will be set to True, and
.indices() will contain 'plus' and 'minus' mates as well as singletons.
Now, if you want to get separate I(+) and I(-), for an example look in
def anomalous_signal(self, use_binning=False):
def anomalous_differences(self, enforce_positive_sigmas=False):
def hemisphere_acentrics(self, plus_or_minus):
def hemispheres_acentrics(self):
def convert_to_non_anomalous_if_ratio_pairs_lone_less_than(self,
threshold):
in cctbx/miller/__init__.py.
Pavel
On 6/9/20 07:55, Mooers, Blaine H.M. (HSC) wrote:
> Dear CCTBX experts,
>
> The diffraction data for 3hz7 from RC Researcher's question includes one dataset with column labels of 'I(+)', 'SIGI(+)', 'I(-)', 'SIGI(-)'.
> When the diffraction data of 3hz7 data are read from a mtz file into miller arrays,
> it would appear that the I(+) and I(-) are stored in a single column of intensities rather than two parallel columns.
>
> from iotbx.reflection_file_reader import any_reflection_file
>
> hkl_file = any_reflection_file('3hz7.mtz')
> miller_arrays = hkl_file.as_miller_arrays(merge_equivalents=False)
> Iobs = miller_arrays[1]
> list(Iobs[100:105])
>
> [((7, 4, 38), 84.0, 52.20000076293945),
> ((-7, -4, -38), 112.80000305175781, 48.20000076293945),
> ((8, 4, 38), 119.69999694824219, 57.400001525878906),
> ((-8, -4, -38), 152.10000610351562, 65.9000015258789),
> ((6, 5, 38), 732.5, 57.5)]
>
> How would I extract the I(+) and I(-) into lists to plot against each other in a scatter plot in matplotlib?
>
>
> Best regards,
>
> Blaine
>
> Blaine Mooers, Ph.D.
> Associate Professor
> Department of Biochemistry and Molecular Biology
> College of Medicine
> University of Oklahoma Health Sciences Center
> S.L. Young Biomedical Research Center (BRC) Rm. 466
> 975 NE 10th Street, BRC 466
> Oklahoma City, OK 73104-5419
>
> _______________________________________________
> cctbxbb mailing list
> cctbxbb at phenix-online.org
> http://phenix-online.org/mailman/listinfo/cctbxbb
More information about the cctbxbb
mailing list