CPMG¶
CPMGExperiment¶
CPMGExperiment
¶
One CPMG relaxation-dispersion experiment: its config, the loaded planes,
and (after :meth:run) the fitted/classified results.
Construct with :meth:from_config, then call :meth:run.
Source code in makeshift/relaxation/cpmg.py
from_config
classmethod
¶
Load a CPMG config YAML (see :func:load_config) and read all of
its UCSF planes into a ready-to-run experiment.
Source code in makeshift/relaxation/cpmg.py
run
¶
run(out_dir, lineshape='gaussian', max_r2err_threshold=10000.0, color_map=None, make_plots=False, peaklist=None, xlim=(10.5, 6.0), ylim=(135, 100), zoom_xlim=(9, 7), zoom_ylim=(125, 112))
Run the full pipeline and write a results CSV to out_dir.
Steps: pick peaks -> (optional) reference-peaklist assignment -> fit
lineshapes -> compute R2eff -> classify peaks (with HYDRONMR
elevated_R2 classification) -> write the CSV. With make_plots=True
the diagnostic HSQC / dispersion / waterfall PDFs are also written
(requires the plotting modules).
Results are stored on the object (ref_df, fit_results,
all_r2eff, classifications) and self is returned.
Source code in makeshift/relaxation/cpmg.py
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 | |
Helpers¶
run_protein
¶
Thin backward-compatible wrapper around
CPMGExperiment.from_config(yaml_path).run(out_dir, ...). Returns the
results dict (ref_df, fit_results, all_r2eff, classifications).
Source code in makeshift/relaxation/cpmg.py
save_results_csv
¶
Write a per-peak summary CSV combining peak assignments and classification.
Columns: ref_index, assn_label (if present), N_ppm, H_ppm, vol, vol_err, lw_n, lw_h (if fit_results given, from the reference plane), R2first, R2last, std_first, std_last, std_total, Rex_val, Rex_err, Rex, elevated_R2, label, seqpos, R2_hydro, scaled_R2_pred, rigid_rmse, missing_assignment. Rows are sorted by seqpos (peaks without a seqpos last).