Module for MTZ file I/O and manipulation
ExperimentalData
(input_reflection_file)[source]¶Bases: object
Class to create a temporary mtz containing all the columns needed for SIMBAD from input reflection file
Attributes
input_reflection_file | (str) Path to the input reflection file in ccp4 mtz format |
output_mtz_file | (str) Path to the output mtz file |
Methods
add_array_to_mtz_dataset (miller_array[, …]) |
Function to add cctbx miller array obj to cctbx mtz dataset obj |
change_space_group (new_space_group) |
Change space group of input mtz |
check_anomalous_arrays (miller_array) |
Function to check intensity/amplitude arrays from cctbx to ensure that they are not anomalous arrays |
create_amplitude_array (intensity_array) |
Function to create a cctbx amplitude array from an cctbx intensity array |
create_anomalous_amplitude_array (…) |
Function to create a cctbx anomalous amplitude array from a cctbx anomalous intensity array |
create_anomalous_intensity_array (…) |
Function to create a cctbx anomalous intensity array from a cctbx anomalous amplitude array |
create_merged_intensity_array (…) |
Function to create a cctbs intensity array from a cctbx anomalous intensity array |
create_reconstructed_amplitude_array (…) |
Function to create a cctbx reconstructed amplitude array from a cctbx anomalous amplitude array |
get_array_types () |
Function to assign array types contained within cctbx obj, in cases where there are multiple instances of a type of array, only the first will be considered. |
output_mtz (output_mtz_file) |
Function to output an mtz file from processed miller arrays |
process_miller_arrays () |
Function to process the miller arrays needed for SIMBAD |
add_array_to_mtz_dataset
(miller_array, column_root_label=None)[source]¶Function to add cctbx miller array obj to cctbx mtz dataset obj
Parameters: | miller_array : cctbx :obj:
column_root_label : str
|
---|---|
Returns: | self.mtz_dataset : cctbx :obj:
|
change_space_group
(new_space_group)[source]¶Change space group of input mtz
Parameters: | new_space_group : str
|
---|
check_anomalous_arrays
(miller_array)[source]¶Function to check intensity/amplitude arrays from cctbx to ensure that they are not anomalous arrays
Parameters: | miller_array : cctbx :obj:
|
---|---|
Returns: | bool
|
create_amplitude_array
(intensity_array)[source]¶Function to create a cctbx amplitude array from an cctbx intensity array
Parameters: | intensity_array : cctbx :obj:
|
---|---|
Returns: | self.amplitude_array : cctbx :obj:
|
create_anomalous_amplitude_array
(anomalous_intensity_array)[source]¶Function to create a cctbx anomalous amplitude array from a cctbx anomalous intensity array
Parameters: | anomalous_intensity_array : cctbx :obj:
|
---|---|
Returns: | self.anomalous_amplitude_array : cctbx :obj:
|
create_anomalous_intensity_array
(anomalous_amplitude_array)[source]¶Function to create a cctbx anomalous intensity array from a cctbx anomalous amplitude array
Parameters: | anomalous_amplitude_array : cctbx :obj:
|
---|---|
Returns: | self.anomalous_intensity_array : cctbx :obj:
|
create_merged_intensity_array
(anomalous_intensity_array)[source]¶Function to create a cctbs intensity array from a cctbx anomalous intensity array
Parameters: | anomalous_intensity_array : cctbx :obj:
|
---|---|
Returns: | self.intensity_array : cctbx :obj:
|
create_reconstructed_amplitude_array
(anomalous_amplitude_array)[source]¶Function to create a cctbx reconstructed amplitude array from a cctbx anomalous amplitude array
Parameters: | anomalous_amplitude_array : cctbx :obj:
|
---|---|
Returns: | self.reconstructed_amplitude_array : cctbx :obj:
|
get_array_types
()[source]¶Function to assign array types contained within cctbx obj, in cases where there are multiple instances of a type of array, only the first will be considered. Due to limitations in cctbx
Returns: | self.free_array : cctbx :obj:
self.amplitude_array : cctbx :obj:
self.anomalous_amplitude_array : cctbx :obj:
self.reconstructed_amplitude_array : cctbx :obj:
self.intensity_array : cctbx :obj:
self.anomalous_intensity_array : cctbx :obj:
|
---|
output_mtz
(output_mtz_file)[source]¶Function to output an mtz file from processed miller arrays
Parameters: | output_mtz_file : str
|
---|---|
Returns: | file
|
process_miller_arrays
()[source]¶Function to process the miller arrays needed for SIMBAD
Parameters: | self.free_array : cctbx :obj:
self.amplitude_array : cctbx :obj:
self.anomalous_amplitude_array : cctbx :obj:
self.reconstructed_amplitude_array : cctbx :obj:
self.intensity_array : cctbx :obj:
self.anomalous_intensity_array : cctbx :obj:
|
---|---|
Returns: | self.mtz_dataset : cctbx :obj:
|
crystal_data
(mtz_file)[source]¶Set crystallographic parameters from mtz file
Parameters: | mtz_file : str
|
---|---|
Returns: | space_group : str
resolution : str
cell_parameters : tuple
|
get_labels
(mtz_file)[source]¶Function to get the column labels for input mtz file
Parameters: | mtz_file : str
|
---|---|
Returns: | f : str
fp : str
i : str
sigi : str
dano : str
sigdano : str
free : str
|