Module for handling relaxation dispersion data within the relax data
store.
The dispersion data model is based on the following concepts, in
order of importance:
The data structures used in this module consist of many different
index types which follow the data ordering above. These are
abbreviated as:
float
|
average_intensity(spin=None,
exp_type=None,
frq=None,
offset=None,
point=None,
time=None,
sim_index=None,
error=False)
Return the average peak intensity for the spectrometer frequency,
dispersion point, and relaxation time. |
source code
|
|
List of dict()
|
|
|
|
int
|
|
int
|
|
int
|
|
|
count_spins(spins=None)
Count the number of selected spins in the spin cluster. |
source code
|
|
|
cpmg_setup(spectrum_id=None,
cpmg_frq=None,
ncyc_even=True)
Set the CPMG frequency associated with a given spectrum. |
source code
|
|
str, float
|
|
list of str
|
find_intensity_keys(exp_type=None,
frq=None,
offset=None,
point=None,
time=None,
raise_error=True)
Return the key corresponding to the spectrometer frequency,
dispersion point, and relaxation time. |
source code
|
|
str
|
|
str
|
|
str
|
|
bool
|
|
bool
|
has_disp_data(spins=None,
spin_ids=None,
exp_type=None,
frq=None,
offset=None,
point=None)
Determine if dispersion data exists for the given data combination. |
source code
|
|
bool
|
|
bool
|
|
bool
|
|
bool
|
|
bool
|
|
bool
|
|
|
|
boolean, rank-4 list of numpy rank-1 float arrays, rank-4 list of
numpy rank-1 float arrays, rank-3 list of numpy rank-1 float arrays,
rank-4 list of numpy rank-1 float arrays, rank-2 list of numpy rank-1
float arrays, rank-4 list of numpy rank-1 float arrays, rank-4 list
of numpy rank-1 float arrays, rank-4 list of numpy rank-1 float
arrays
|
interpolate_disp(spin=None,
spin_id=None,
si=None,
num_points=None,
extend_hz=None,
relax_times=None)
Interpolate function for 2D Grace plotting function for the
dispersion curves. |
source code
|
|
boolean, rank-4 list of numpy rank-1 float arrays, rank-4 list of
numpy rank-1 float arrays, rank-3 list of numpy rank-1 float arrays,
rank-4 list of numpy rank-1 float arrays, rank-2 list of numpy rank-1
float arrays, rank-4 list of numpy rank-1 float arrays, rank-4 list
of numpy rank-1 float arrays, rank-4 list of numpy rank-1 float
arrays
|
interpolate_offset(spin=None,
spin_id=None,
si=None,
num_points=None,
extend_ppm=None,
relax_times=None)
Interpolate function for 2D Grace plotting function for the
dispersion curves, interpolating through spin-lock offset in rad/s. |
source code
|
|
bool
|
|
bool
|
|
bool
|
|
list of str
|
|
str, (int)
|
loop_exp(return_indices=False)
Generator method for looping over all experiment types. |
source code
|
|
str, float, (int, int)
|
|
str, float, float, (int, int, int)
|
|
str, float, float, float, (int, int, int, int)
|
|
str, float, float, float, (int, int, int, int)
|
|
str, float, float, (int, int, int)
|
|
str, float, float, float, (int, int, int, int)
|
|
float, (int)
|
loop_frq(return_indices=False)
Generator method for looping over all spectrometer frequencies. |
source code
|
|
float, float, (int, int)
|
loop_frq_offset(exp_type=None,
return_indices=False)
Generator method for looping over the spectrometer frequencies and
dispersion points. |
source code
|
|
float, float, (int, int)
|
loop_frq_point(exp_type=None,
return_indices=False)
Generator method for looping over the spectrometer frequencies and
dispersion points. |
source code
|
|
str
|
|
float, float, float
|
loop_frq_point_time(exp_type=None,
return_indices=False)
Generator method for looping over the spectrometer frequencies,
dispersion points, and relaxation times. |
source code
|
|
float, (int)
|
loop_offset(exp_type=None,
frq=None,
return_indices=False)
Generator method for looping over the spin-lock offset values. |
source code
|
|
float, float, (int, int)
|
loop_offset_point(exp_type=None,
frq=None,
skip_ref=True,
return_indices=False)
Generator method for looping over the offsets and dispersion points. |
source code
|
|
float, (int)
|
loop_point(exp_type=None,
frq=None,
offset=None,
time=None,
skip_ref=True,
return_indices=False)
Generator method for looping over the dispersion points. |
source code
|
|
str
|
loop_spectrum_ids(exp_type=None,
frq=None,
offset=None,
point=None,
time=None)
Generator method for selectively looping over the spectrum IDs. |
source code
|
|
float
|
loop_time(exp_type=None,
frq=None,
offset=None,
point=None,
return_indices=False)
Generator method for looping over the relaxation times. |
source code
|
|
int
|
|
|
pack_back_calc_r2eff(spin=None,
spin_id=None,
si=None,
back_calc=None,
proton_mmq_flag=False)
Store the back calculated R2eff data for the given spin. |
source code
|
|
|
plot_disp_curves(dir=None,
y_axis=' r2_eff ' ,
x_axis=' disp ' ,
num_points=1000,
extend_hz=500.0,
extend_ppm=500.0,
interpolate=' disp ' ,
force=False) |
source code
|
|
|
plot_disp_curves_to_file(file_name_ini=None,
dir=None,
y_axis=None,
x_axis=None,
interpolate=None,
num_points=None,
extend_hz=None,
extend_ppm=None,
force=None,
proton_mmq_flag=None) |
source code
|
|
|
plot_exp_curves(file=None,
dir=None,
force=None,
norm=None)
Custom 2D Grace plotting function for the exponential curves. |
source code
|
|
|
|
|
r2eff_read(id=None,
file=None,
dir=None,
disp_frq=None,
offset=None,
spin_id_col=None,
mol_name_col=None,
res_num_col=None,
res_name_col=None,
spin_num_col=None,
spin_name_col=None,
data_col=None,
error_col=None,
sep=None)
Read R2eff/R1rho values directly from a file whereby each row
corresponds to a different spin. |
source code
|
|
|
r2eff_read_spin(id=None,
spin_id=None,
file=None,
dir=None,
disp_point_col=None,
offset_col=None,
data_col=None,
error_col=None,
sep=None)
Read R2eff/R1rho values from file whereby each row is a different
dispersion point. |
source code
|
|
|
randomise_R1(spin=None,
ri_id=None,
N=None)
Randomise the R1 data for the given spin for use in the Monte Carlo
simulations. |
source code
|
|
|
relax_time(time=0.0,
spectrum_id=None)
Set the relaxation time period associated with a given spectrum. |
source code
|
|
rank-2 list of numpy rank-1 float64 arrays
|
|
numpy rank-1 float64 array
|
|
|
return_grace_data_vs_disp(y_axis=None,
x_axis=None,
interpolate=None,
exp_type=None,
ei=None,
current_spin=None,
spin_id=None,
si=None,
back_calc=None,
cpmg_frqs_new=None,
spin_lock_nu1_new=None,
chemical_shifts=None,
offsets_inter=None,
tilt_angles_inter=None,
Delta_omega_inter=None,
w_eff_inter=None,
interpolated_flag=None,
graph_index=None,
data=None,
set_labels=None,
set_colours=None,
x_axis_type_zero=None,
symbols=None,
symbol_sizes=None,
linetype=None,
linestyle=None,
axis_labels=None) |
source code
|
|
|
return_grace_data_vs_offset(y_axis=None,
x_axis=None,
interpolate=None,
exp_type=None,
ei=None,
current_spin=None,
spin_id=None,
si=None,
back_calc=None,
cpmg_frqs_new=None,
spin_lock_nu1_new=None,
chemical_shifts=None,
offsets_inter=None,
tilt_angles_inter=None,
Delta_omega_inter=None,
w_eff_inter=None,
interpolated_flag=None,
graph_index=None,
data=None,
set_labels=None,
set_colours=None,
x_axis_type_zero=None,
symbols=None,
symbol_sizes=None,
linetype=None,
linestyle=None,
axis_labels=None) |
source code
|
|
|
return_grace_file_name_ini(y_axis=None,
x_axis=None,
interpolate=None) |
source code
|
|
|
return_grace_x_y_axis_labels(y_axis=None,
x_axis=None,
exp_type=None,
interpolate=None) |
source code
|
|
str, int, float, int, int
|
return_x_y_data_labels_settings(spin=None,
data_type=None,
y_axis=None,
exp_type=None,
frq=None,
offset=None,
point=None,
interpolated_flag=None)
Return the X and Y labels and plot settings, according to selected
axis to plot for. |
source code
|
|
|
return_grace_x_y_point(data_type=None,
y_axis=None,
x_axis=None,
interpolate=None,
data_key=None,
spin=None,
back_calc=None,
offset=None,
point=None,
r1=None,
r1_err=None,
w_eff=None,
theta=None,
err=False) |
source code
|
|
int
|
|
int
|
|
int
|
|
int
|
|
str
|
|
rank-3 list of numpy rank-1 float arrays, rank-4 list of numpy rank-1
float arrays, rank-2 list of numpy rank-1 float arrays, rank-4 list
of numpy rank-1 float arrays, rank-4 list of numpy rank-1 float
arrays, rank-4 list of numpy rank-1 float arrays
|
return_offset_data(spins=None,
spin_ids=None,
field_count=None,
spin_lock_offset=None,
fields=None)
Return numpy arrays of the chemical shifts, offsets and tilt angles. |
source code
|
|
str
|
|
numpy rank-2 float array
|
return_r1_data(spins=None,
spin_ids=None,
field_count=None,
sim_index=None)
Return the R1 data structures for off-resonance R1rho experiments. |
source code
|
|
numpy rank-2 float array
|
return_r1_err_data(spins=None,
spin_ids=None,
field_count=None,
sim_index=None)
Return the R1 error data structures for off-resonance R1rho
experiments. |
source code
|
|
lists of numpy float arrays, lists of numpy float arrays, lists of
numpy float arrays, numpy rank-2 int array
|
return_r2eff_arrays(spins=None,
spin_ids=None,
fields=None,
field_count=None,
sim_index=None)
Return numpy arrays of the R2eff/R1rho values and errors. |
source code
|
|
numpy rank-2 float64 array
|
|
rank-2 list of numpy rank-1 float64 arrays
|
|
numpy rank-1 float64 array
|
|
float
|
|
float
|
|
|
set_exp_type(spectrum_id=None,
exp_type=None)
Select the relaxation dispersion experiment type performed. |
source code
|
|
bool
|
|
list of SpinContainer instances
|
|
|
|
|
|
|
|